zoom-in into figure, doesn't change Y axes

3 Ansichten (letzte 30 Tage)
michael
michael am 24 Okt. 2016
Bearbeitet: Kirby Fears am 25 Okt. 2016
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:
Zoomed-in image:
  1 Kommentar
Kirby Fears
Kirby Fears am 24 Okt. 2016
Bearbeitet: Kirby Fears am 25 Okt. 2016
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Marc Jakobi
Marc Jakobi am 24 Okt. 2016
Try setting the YTickLabelMode or the YTickMode to 'auto' or 'manual'.
e. g.
ax = gca;
ax.YTickLabelMode = 'auto';
  2 Kommentare
Walter Roberson
Walter Roberson am 24 Okt. 2016
Right, the problem is that YTickLabelMode is set to 'manual' in the axes.
Walter Roberson
Walter Roberson am 24 Okt. 2016
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.)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Exploration finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by