MATLAB Answers

Subplots limit

71 views (last 30 days)
Aadil
Aadil on 23 Apr 2012
Is there a limit to how many subplots you can have in a A4 sized landscape pdf?
When I save my plots as pdf it only seems to keep 5 subplots in one page, whereas in the actual figure file all 6 are visible
In this example the last plot is being left out:
I've tried changing the papermode to portrait but get the same problem
I changed the pdf size to A3 that included all the plots but now the positioning is all messed up
Is there any automated method of doing this?
Thanks

  2 Comments

Aadil
Aadil on 23 Apr 2012
anyone?
Jan
Jan on 23 Apr 2012
I can get 20x40 subplots on a DinA4 PDF without any problems. Please post your PRINT command and the properties of the figure which cause your troubles. Do you set the position of the subplot axes to fixed sizes?

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 23 Apr 2012
Were you using export_fig()?
If so, I'd contact Oliver and he'll probably tell you how to fix it.
If not, then I guess you'll find out why export_fig is the most downloaded File Exchange submission.

  3 Comments

Aadil
Aadil on 23 Apr 2012
Right I just realised I made a mistake within the script.
But on this topic, do you know how to decrease the spacing between subplots? With multiple subplots my graph area becomes tiny, even though I have removed x labels
Daniel Shub
Daniel Shub on 23 Apr 2012
You should ask this as a new question. I think it has lots of potentially interesting answers ...
Aadil
Aadil on 23 Apr 2012
probably better to do that yes

Sign in to comment.

More Answers (1)

Daniel Shub
Daniel Shub on 23 Apr 2012
I believe the limits on subplot depend on the figure size and the monitor resolution. An axis must have a minimum size of at least 1x1 pixels. In practice an axis that small is not useful.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!