First figure with subplots has different size than other figures when default WindowStyle is docked
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hey people, I couldn't find anything on this topic, so I hope my question can be answered:
When I set the default value of the window style to 'docked' (set(0,'DefaultFigureWindowStyle','docked')) and then create several figures, each containing subplots, all the subplots of the first figure are slightly smaller than all the upcoming figures.
You should be able to reproduce the problem by taking this code:
set(0,'DefaultFigureWindowStyle','docked')
figure(1)
subplot(5,2,1), bar(1:10)
figure(2)
subplot(5,2,1), bar(1:10)
figure(3)
subplot(5,2,1), bar(1:10)
Figure 2 and 3 should have the same size, while the first figure is smaller than the other two!
I hope anybody knows a way how to fix this! Many thanks in advance!
Leo
4 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Subplots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!