Clear Filters
Clear Filters

distortion of Y axis

4 views (last 30 days)
Mini Me
Mini Me on 29 Apr 2013
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([ ]).

Answers (2)

Shashank Prasanna
Shashank Prasanna on 29 Apr 2013
  2 Comments
Mini Me
Mini Me on 29 Apr 2013
doesnt help since im plotting against one X value...
Walter Roberson
Walter Roberson on 29 Apr 2013
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)

Sign in to comment.


Walter Roberson
Walter Roberson on 29 Apr 2013
You might find the FEX contribution breakplot to be useful.

Categories

Find more on Two y-axis in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!