Y-Axis location in MATLAB plots

54 ビュー (過去 30 日間)
henry wang
henry wang 2011 年 1 月 27 日
回答済み: Wenxuan Liang 2021 年 3 月 10 日
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
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.
henry wang
henry wang 2011 年 1 月 27 日
I'm just talking about simple plot function like plot(something). How to adjust the axis so y axis shows at the center.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2011 年 1 月 27 日
PlotAxisAtOrigin Matlab File Exchange contribution
  1 件のコメント
henry wang
henry wang 2011 年 1 月 27 日
thanks

サインインしてコメントする。

その他の回答 (2 件)

Oleg Komarov
Oleg Komarov 2011 年 1 月 27 日

Or another submission axescenter by Matt Fig:


Wenxuan Liang
Wenxuan Liang 2021 年 3 月 10 日
Just use set(gca, 'YAxisLocation', 'origin') if you are using a MATLAB newer than 2018, I think

カテゴリ

Help Center および File ExchangeGraphics Objects についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by