Changeset 14401


Ignore:
Timestamp:
02/27/13 07:51:41 (12 years ago)
Author:
cborstad
Message:

CHG: better default calculation for nlines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/plotmodel.m

    r14300 r14401  
    88subplotwidth=ceil(sqrt(options.numberofplots));
    99
     10%Get figure number and number of plots
     11figurenumber=options.figurenumber;
     12numberofplots=options.numberofplots;
     13
    1014%if nlines and ncols specified, then bypass.
    1115if exist(options.list{1},'nlines'),
    1216        nlines=getfieldvalue(options.list{1},'nlines');
    1317else
    14         nlines=subplotwidth;
     18        nlines=ceil(numberofplots/subplotwidth);
    1519end
    1620
     
    2529        error('plotmodel error message: nlines and ncols  need to be specified together, or not at all');
    2630end
    27 
    28 %Get figure number and number of plots
    29 figurenumber=options.figurenumber;
    30 numberofplots=options.numberofplots;
    3131
    3232%go through subplots
Note: See TracChangeset for help on using the changeset viewer.