5.0

5.0 | 9 ratings Rate this file 135 downloads (last 30 days) File Size: 3 KB File ID: #3696

Subaxis - Subplot

by Aslak Grinsted

 

08 Jul 2003 (Updated 10 Jul 2003)

No BSD License  

Use HTML jargon for multi axis layout.

Download Now | Watch this File

File Information
Description

SUBAXIS Create axes in tiled positions. (just like subplot)
    Usage:
       h=subaxis(rows,cols,cellno[,settings])
       h=subaxis(rows,cols,cellx,celly[,settings])
       h=subaxis(rows,cols,cellx,celly,spanx,spany[,settings])
 
  SETTINGS: Spacing,SpacingHoriz,SpacingVert
            Padding,PaddingRight,PaddingLeft,PaddingTop,PaddingBottom
            Margin,MarginRight,MarginLeft,MarginTop,MarginBottom
            Holdaxis
 
            all units are relative (e.g from 0 to 1)
 
            Abbreviations of parameters can be used.. (Eg MR instead of MarginRight)
            (holdaxis means that it wont delete any axes below.)
 
 
  Example:
 
    >> subaxis(2,1,1,'SpacingVert',0,'MR',0);
    >> imagesc(magic(3))
    >> subaxis(2,'p',.02);
    >> imagesc(magic(4))
 
  2001 / Aslak Grinsted (Feel free to modify this code.)

MATLAB release MATLAB 6.1 (R12.1)
Zip File Content  
Other Files parseArgs.m,
subaxis.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
28 Apr 2004 Stephan Zeipel

Works great!
Thanks

29 Apr 2005 Janik Zikovsky

A worthy replacement to subplot, which is not nearly flexible enough. Being able to span cells is great!

30 Aug 2005 Marcello Vichi

Great Matlab programming. I'm not using subplot anymore...
I also enjoyed parseArgs, which is very useful to include in my own mfiles.

09 Jan 2006 antoine stephany

good job !

29 Jul 2007 jon erickson

Awesome--far superior to subplot. This function is a slightly tricky to use at first, but a few minutes of practice/playing around and you'll never go back to subplot.
mathworks should make this standard...

30 Jan 2008 Stine Gro Jensen

This is just what I needed! Great! I fully agree with the other reviewers. Take your time to work it out, and you will never use subplot again.

22 Feb 2008 Eduardo Gonzalez

Just great. I don't use subplot any more. Useful not just for subplots but to eliminate the blank space around the graphic in one plot.

28 Jul 2008 Andrzej Lewarek

Just great. It was exactly what I was looking for. Thanks!

07 Nov 2009 Raymond Cheng

Thanks for your sharing.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
annotation Aslak Grinsted 22 Oct 2008 07:04:26
axis Aslak Grinsted 22 Oct 2008 07:04:27
subplot Aslak Grinsted 22 Oct 2008 07:04:27
customization Aslak Grinsted 22 Oct 2008 07:04:27
multiplot Aslak Grinsted 22 Oct 2008 07:04:27
graphics Aslak Grinsted 22 Oct 2008 07:04:27
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com