First figure with subplots has different size than other figures when default WindowStyle is docked
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!