Rank: 6676 based on 13 downloads (last 30 days) and 1 file submitted
photo

Dan Pendleton

E-mail

Personal Profile:
Professional Interests:
ecology, machine learning, whales, zooplankton

 

Watch this Author's files

 

Files Posted by Dan
Updated   File Tags Downloads
(last 30 days)
Comments Rating
25 Aug 2009 subplotSpacing.m Shrink or expand the spacing between subplots in a figure. Author: Dan Pendleton subplot, spacing, shrink, expand, grow 13 3
  • 3.5
3.5 | 2 ratings
Comments and Ratings on Dan's Files View all
Updated File Comment by Comments Rating
17 Apr 2012 subplotSpacing.m Shrink or expand the spacing between subplots in a figure. Author: Dan Pendleton Karl

This doesn't work if you combine subplots - line 18 in the code catches it as an error. For example:
subplot(2,2,1);plot(x1,y1);
subplot(2,2,2);plot(x2,y2);
subplot(2,2,[3 4]);plot(x3,y3);
MATLAB returns:
Error using subplotSpacing (line 18)
dimensions of subplot do not match number of elements of h

30 Jun 2010 subplotSpacing.m Shrink or expand the spacing between subplots in a figure. Author: Dan Pendleton Armenta, Michelle

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.

19 Oct 2009 subplotSpacing.m Shrink or expand the spacing between subplots in a figure. Author: Dan Pendleton Edwards, James

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.

Contact us