Can't get the same Y-Axis for every Subplot
조회 수: 3 (최근 30일)
이전 댓글 표시
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
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')
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!