Code covered by the BSD License  

Highlights from
subplotsCM

Be the first to rate this file! 11 Downloads (last 30 days) File Size: 2.73 KB File ID: #41370
image thumbnail

subplotsCM

by

 

Creates subplots with less wasted space. Subplot sizes and margins are specified in centimeters.

| Watch this File

File Information
Description

    [AX,H]=SUBPLOTSCM(NROWS,NCOLS,FIGWIDTH,FIGHEIGHT,W,E,NS,EW,N,S) where:
    NROWS is the number of rows of subplots, NCOLS the number of columns.
    FIGWIDTH and FIGHEIGHT are in centimeters. Defaults: 44, 25.5.
    W, E, N, and S are the margin widths (in cm) for the west, east, north,
       and south sides of the figure. Defaults: 1.4, 0.3, 0.2, 1
    NS and EW are the margin widths between subplots. Defaults: 0.05, 0.05.
    AX is a handle to the axes created.
    H is the figure handle.
 
    If FIGWIDTH or FIGHEIGHT are strings, SUBPLOTSCM will use the string
    value as the subplot width or height and calculate the figure height or
    width. E.g. if a subplot height of 3 cm is desired, FIGHEIGHT='3'

The functionality overlaps with some other file exchange submissions, but I like my version, and thought others might too.

Required Products MATLAB
MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us