Y-Axis location in MATLAB plots
Ältere Kommentare anzeigen
I've seen plots with y-axis at the center of the plot rather than to the left. How do I do this in MATLAB?
2 Kommentare
Paulo Silva
am 27 Jan. 2011
Please be more specific, you could be talking about using suplots or adjusting the axis so y is at center or something else.
henry wang
am 27 Jan. 2011
Akzeptierte Antwort
Weitere Antworten (2)
Oleg Komarov
am 27 Jan. 2011
1 Stimme
Or another submission axescenter by Matt Fig:

Wenxuan Liang
am 10 Mär. 2021
1 Stimme
Just use set(gca, 'YAxisLocation', 'origin') if you are using a MATLAB newer than 2018, I think
Kategorien
Mehr zu Line Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!