distortion of Y axis
5 次查看(过去 30 天)
显示 更早的评论
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([ ]).
0 个评论
回答(2 个)
Shashank Prasanna
2013-4-29
PLOTYY lets you have 2 Y axes:
2 个评论
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)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!