First figure with subplots has different size than other figures when default WindowStyle is docked

8 visualizaciones (últimos 30 días)
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 comentarios
Leonard
Leonard el 15 de Ag. de 2014
I added the screens in my original post.
While trying around I figured the following out: When I change basically anything at the figure (zoom in/out, try so save it, go to the plot tools etc.) it switches back to the correct size. I don't really get it why he doesn't display the correct size from the beginning on but anyway. If you have an explanation for that tell me. Otherwise the questions is more or less answered as I now know how to get back to the original size!

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by