Changeset 14400


Ignore:
Timestamp:
02/26/13 14:51:20 (12 years ago)
Author:
cborstad
Message:

NEW: asymsubplot option added to make asymmetrical subplot arrays, as on Matlab subplot doc page

Location:
issm/trunk-jpl/src/m/plot
Files:
2 edited

Legend:

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

    r13730 r14400  
    179179
    180180%standard plot:
    181 subplot(nlines,ncols,i);
     181if exist(options,'asymsubplot')
     182        id=getfieldvalue(options,'asymsubplot',i);
     183        subplot(nlines,ncols,id);
     184else
     185        subplot(nlines,ncols,i);
     186end
    182187
    183188%plot unit
  • issm/trunk-jpl/src/m/plot/subplotmodel.m

    r13730 r14400  
    77%Regular subplot
    88if ~exist(options,'tightsubplot')
    9         subplot(nlines,ncols,num);
    10         return;
     9        if exist(options,'asymsubplot')
     10                id=getfieldvalue(options,'asymsubplot',num);
     11                subplot(nlines,ncols,id);
     12                return
     13        else
     14                subplot(nlines,ncols,num);
     15                return;
     16        end
    1117end
    1218
Note: See TracChangeset for help on using the changeset viewer.