Code covered by the BSD License  

Highlights from
subplotSpacing.m

5.0

5.0 | 1 rating Rate this file 15 Downloads (last 30 days) File Size: 1.59 KB File ID: #25140

subplotSpacing.m

by Dan Pendleton

 

25 Aug 2009

Shrink or expand the spacing between subplots in a figure.

| Watch this File

File Information
Description

The spacing between subplots takes up a lot of space, which I would like to use to show my results. I wrote subplotSpacing.m to shrink the spacing between subplots, and thus increase the relative area occupied by the figures. subplotSpacing.m can also be used expand the spacing between subplots. It just depends on the value of the 'space' input.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
19 Oct 2009 James Edwards

Thanks for this, very nice and easy to use.

I have only a 1 row and 2 column subplot, so I got an error in 'pull rows together section'. I just put "if numrows > 1" around it and it worked fine.

30 Jun 2010 Michelle Armenta

I tried using it for a several figures with different number of rows an columns and it keeps making them even smaller and dragging them to the left bottom corner. I don't know if it's my matlab version (v. 7, yr 2004) or sth else.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
subplot Dan Pendleton 26 Aug 2009 12:24:26
spacing Dan Pendleton 26 Aug 2009 12:24:27
shrink Dan Pendleton 26 Aug 2009 12:24:27
grow Dan Pendleton 26 Aug 2009 12:24:27
expand Dan Pendleton 26 Aug 2009 12:24:27
spacing Karl 09 Oct 2009 16:06:13

Contact us at files@mathworks.com