Y-Axis location in MATLAB plots

조회 수: 38 (최근 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

추가 답변 (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 CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by