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일

1 개 추천

PlotAxisAtOrigin Matlab File Exchange contribution

추가 답변 (2개)

Oleg Komarov
Oleg Komarov 2011년 1월 27일

1 개 추천

Or another submission axescenter by Matt Fig:

Wenxuan Liang
Wenxuan Liang 2021년 3월 10일

1 개 추천

Just use set(gca, 'YAxisLocation', 'origin') if you are using a MATLAB newer than 2018, I think

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

질문:

2011년 1월 27일

답변:

2021년 3월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by