Continuous Plot and Semilogx on the same figure

조회 수: 5 (최근 30일)
Kenan
Kenan 2013년 1월 16일
Hello all,
I am trying to plot on the same figure the evolution of a function f, with argument x in ]0,1]. I would like to see both the evolution of f far away from 0 and close to 0, on the same figure, with one x axis.
For now I only have two different figures, one using plot with x=[0.1 ... 1], and one using semilogx with x=[1e-9 1e-7 1e-5... 0.1]. I would like to have both graphs on the same figure, with the x axis being logarithmic at the beginning, then linear after a certain x0 (let's say x0=0.1).
I do not want something using plotxx since I want only one x axis.
Do you know if this is possible?
Thank you for your time and help.

답변 (1개)

Walter Roberson
Walter Roberson 2013년 1월 17일
You could probably make the plot look okay by doing a data transform and fooling with the xtick positions and xtick labels, but if you want zooming or the data cursor to work, you would have to write custom functions to handle those.
  댓글 수: 3
Walter Roberson
Walter Roberson 2013년 1월 18일
What would "behave normally" mean in the context of an abnormal axis setup?
Kenan
Kenan 2013년 1월 18일
편집: Kenan 2013년 1월 19일
I mean it's the second option of what you propose ("if you want zooming or the data cursor to work, you would have to write custom functions to handle those"), but I don't know how to do it. Hence my question in the first place.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Exploration에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by