How could i displace the values of X axis under X axis (Y negative) ?
Ältere Kommentare anzeigen
Akzeptierte Antwort
Weitere Antworten (1)
Yair Altman
am 16 Feb. 2019
Bearbeitet: Yair Altman
am 16 Feb. 2019
A peculiarity of AxisLocation='origin' is that the X and Y tick labels automatically switch location (from below the X axis to above-it, and from left of the Y axis to right-of-it, respectively) depending on where the axes origin (0,0) is located. You can easily see this behavior by dragging (panning) the axes up/down and left/right, respectively.
If you want to ensure that the labels appear beneath the X axes, then make the YLimit above the axes larger than the one beneath it. For example:
ax.YLim = [-.80001,.8];
axis([-6 19 -0.80001 0.8]); % alternative
2 Kommentare
Star Strider
am 16 Feb. 2019
@Yair — Thank you yet again!
+1
Yair Altman
am 16 Feb. 2019
My pleasure - see you again soon :-)
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
