zoom-in into figure, doesn't change Y axes
8 次查看(过去 30 天)
显示 更早的评论
Hello,
When performing zoom in on some positive values in the figure, where I have some negative values, after the zoom-in, I still have negative values on Y-axes. Please suggest what to do.
Matlab version: 8.6.0.267246 (R2015b) (.fig file is also attached)
Original image:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157392/image.png)
Zoomed-in image:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157393/image.png)
1 个评论
Kirby Fears
2016-10-24
编辑:Kirby Fears
2016-10-25
I zoomed in using the "+" magnifying glass and both axes behaved as expected in 2015a. The Pareto frontier was between 3.5 and 3.6 on the y axis.
采纳的回答
Marc Jakobi
2016-10-24
Try setting the YTickLabelMode or the YTickMode to 'auto' or 'manual'.
e. g.
ax = gca;
ax.YTickLabelMode = 'auto';
2 个评论
Walter Roberson
2016-10-24
Right, the problem is that YTickLabelMode is set to 'manual' in the axes.
Walter Roberson
2016-10-24
The behaviour should not be based on settings.
However, if you are using R2014a or earlier, then the version of the figure you got when you opened the .fig would be different than for R2014b or later. (Though one of the axes properties that show up here did not officially exist in R2014b itself, so I am not sure how that would be handled.)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Visual Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!