distortion of Y axis

조회 수: 3 (최근 30일)
Mini Me
Mini Me 2013년 4월 29일
I’m wondering if there’s a way to distort the Y axis and have a portion of it on a different scale. Say the axis is from -100 to 100 and you want to distort part of the axis from 0 to 50 and have that on a different scale. Reason I want to do this is because I have a plot that has numerous Y values and one X value and the Y values are somewhat closed to each other resulting in them overlapping. I’m not sure if that the right way to go about it as for axis distortion goes. Or is another way to go about this. Keep in mind I’m plotting different Y values Vs one X value which causes the overlapping since the Y values are closed to each other. I have about 20 data points in the center of my Y axis that I want to spread out so I can see clearly. The manual zoom in does not do it for, same for YTick and axis([ ]).

답변 (2개)

Shashank Prasanna
Shashank Prasanna 2013년 4월 29일
  댓글 수: 2
Mini Me
Mini Me 2013년 4월 29일
doesnt help since im plotting against one X value...
Walter Roberson
Walter Roberson 2013년 4월 29일
That doesn't matter. The points that are to be regular spacing, you plot on one of the axes, and the points that are to be spread apart, you plot on the second axes. You can also pull plotyyy out of the file exchange if that makes it easier to have the three parts (below the center, in the center, above the center)

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


Walter Roberson
Walter Roberson 2013년 4월 29일
You might find the FEX contribution breakplot to be useful.

카테고리

Help CenterFile Exchange에서 Two y-axis에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by