Subplot difference, Matlab 2008 and 2010
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
Kevin Dutton
am 22 Nov. 2011
0 Stimmen
Kategorien
Mehr zu Subplots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!