Shrinking plots using sublot. Figures getting smaller sequentially.

8 views (last 30 days)
Hello, This question was asked previously twice, but with no replies so hopefully somebody can help me here.
I am generating multiple subplots at once and am repeating this hundreds of times to check for errors in the plots. I load the first 12 subplots onto the figure window. I then continue with the next 12 etc. etc. As I continue I notice that the 12 subplots get slightly smaller each time I rerun the code for the next 12. By the time I hit around 30 figures of 12 subplots, they are too small to even recognize. Any ideas? The question before me is below that was not answered. Thank you! Also my code is just below.
figure; for i=(1:4:sn), pause
subplot(4,4,1), contourf(Em,Ex,(reshape(fall(i,:),31,101))), axis tight, colorbar xlabel('Emission (nm)') ylabel('Excitation (nm)') title((i)) etc. etc.
Older Question, "I am generating a subplot for successive runs of my matlab code but without closing all the figure windows at the beginning of each run. For some reason, my plots keep shrinking within the subplot window for each successive run. I don't 'close all' at the beginning of each run but I don't see why matlab keeps shrinking the plot until a few runs later, I can barely see the plot. Has anyone else faced this problem before?"

Answers (1)

Walter Roberson
Walter Roberson on 9 Dec 2011
Which MATLAB version are you using, on which OS? The last shrinking-plot problem that I personally encountered was back in 2007a, on a Linux system.
(My recollection at the moment is that I traced that to a round-off problem when one kind of units were converted to another and then they were converted back again: in that situation, the window kept getting one pixel shorter.)
  3 Comments
Walter Roberson
Walter Roberson on 9 Dec 2011
I think the issue you are seeing is likely unrelated to the one I encountered.
Your mention of shrinking plots in R2011b on Windows sounds a bit familiar to me, but that might even just be from having read your previous posting. I would suggest creating a support case.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!