Can't get the same Y-Axis for every Subplot

조회 수: 3 (최근 30일)
Panda
Panda 2014년 7월 24일
편집: dpb 2014년 7월 24일
I have 3 loglog-subplots in one Figure. The plotboxes have the same size, the limits are the same, everything is fine. Except the scaling of the y-Axis: It still goes from 0 to 100 but the steps are different. For example in the first plot 10 is in the middle of the y-Axis, in the second at 60% of the y-Axis and in the third at 75%. But i want the y-axis to be exactly the same in each plot (f.i. 10 always at the middle of the y-axis). To clarify: -i dont need help with the limits (xlim,ylim) -i dont need help with the ticks displayed (xtick, etc..) -i need help with the distance between the ticks. All 3 y-axis have to be the SAME.
  댓글 수: 1
dpb
dpb 2014년 7월 24일
편집: dpb 2014년 7월 24일
If the limits are the same and the number of ticks and tick values are the same, the spacing must be the same...
Either attach a figure that shows the issue or better yet, a small sample case that can be cut 'n pasted that generates the problem.
ADDENDUM
Or, simpler probably, show us the results of
get(gca,'yscale')
get(gca,'ytick')

댓글을 달려면 로그인하십시오.

채택된 답변

Honglei Chen
Honglei Chen 2014년 7월 24일
Did you try linkaxes? Does that solve your problem?

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by