First figure with subplots has different size than other figures when default WindowStyle is docked
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Subplots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!