Subplot difference, Matlab 2008 and 2010
이전 댓글 표시
I'm running the same piece of matlab code on 2 machines, one with R2008B and the other with R2010a. The code calls for a 3x1 subplot. When I run the code in R2010a all the subplots are much smaller than in 2008B.
Test code is:
x = 1:10; y = 1:10;
figure; clf;
subplot(211); plot(x,y); set(gca, 'XTickLabel', []);
title({'Two Subplots' ; 'Title 2'});
subplot(212); plot(x,y);
xlabel({ 'Xlabel 1' ; 'Xlabel 2'});
figure; clf;
subplot(311); plot(x,y); set(gca, 'XTickLabel', []);
title({'Three Subplots' ; 'Title 2'});
subplot(312); plot(x,y); set(gca, 'XTickLabel', []);
subplot(313); plot(x,y);
xlabel({ 'Xlabel 1' ; 'Xlabel 2'});
Question is - what is the difference between R2008B and R2010A that causes this, and how can I get R2010A to behave like R2008B?
Thanks
채택된 답변
추가 답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!