Adding an x-axis changes output of graph

I'm trying to label my axis and it is changing the output of the graph. Only the xlabel is effecting it. Adding an x label doesn't effect the output of the other two graphs and if I add a label to a lower graph, it still changes the top one. I don't know what is going wrong.
Between attempts all I did was comment and uncomment xlabel('Time (s)')

 채택된 답변

Adam
Adam 2017년 1월 25일

1 개 추천

Almost all plotting-related commands in Matlab come with an overload that takes the axes handle as first argument. Use it!! Don't just rely on whatever happens to be the current axes.
xlabel( hAxes, 'Time(s)' )
will change the x label only on the axes whose handle is hAxes rather than some arbitrary axes.

추가 답변 (0개)

카테고리

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

질문:

2017년 1월 25일

답변:

2017년 1월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by