Rank: 122528 based on 0 downloads (last 30 days) and 0 file submitted
Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Thomas
Updated File Comments Rating
15 Sep 2010 tight subplot Fills the figure with axes subplots with easily adjustable margins and gaps between the axes. Author: Pekka Kumpulainen

Good work. I needed to create several plots with several sub-plots within a loop. Had trouble with empty plots as the result and Matlab was broke until I restarted it. Even a plot(1:100, rand(1, 100)) would return an empty figure. Anyway, I returned the value for the axes position matrix "ha", and removed the internal axes command. When I was ready to plot in one of the figures I had being created to a specific subplot location I called:

figure(h4);
subplot('Position', ha4(fc4).pos); p=plot(1:100, rand(1, 100));

where ha4(fc4).pos corresponds to the fc4'th subplot position in figure with handle "h4".

Contact us