Y-Axis location in MATLAB plots
12 次查看(过去 30 天)
显示 更早的评论
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 个评论
Paulo Silva
2011-1-27
Please be more specific, you could be talking about using suplots or adjusting the axis so y is at center or something else.
采纳的回答
更多回答(2 个)
Wenxuan Liang
2021-3-10
Just use set(gca, 'YAxisLocation', 'origin') if you are using a MATLAB newer than 2018, I think
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!