First figure with subplots has different size than other figures when default WindowStyle is docked
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Subplots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!