Changeset 21663


Ignore:
Timestamp:
04/06/17 18:12:50 (8 years ago)
Author:
Eric.Larour
Message:

CHG: diverse

Location:
issm/branches/trunk-larour-GRL2017/src/m/plot
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-GRL2017/src/m/plot/plotmodel.m

    r14401 r21663  
    2929        error('plotmodel error message: nlines and ncols  need to be specified together, or not at all');
    3030end
    31 
    3231%go through subplots
    3332if numberofplots,
    3433
    35         %Create figure
    36         f=figure(figurenumber);clf;
     34                %Create figure
     35        if strcmpi(getfieldvalue(options.list{1},'figurestatement','on'),'on'),
     36                f=figure(figurenumber);
     37        else
     38                f=gcf;
     39        end
     40        if strcmpi(getfieldvalue(options.list{1},'clf','on'),'on'),
     41                clf;
     42        end
    3743        if strcmpi(getfieldvalue(options.list{1},'visible','on'),'off'),
    3844                set(f,'Visible','Off');
     
    9096                        plot_manager(getfieldvalue(options.list{i},'model',md),options.list{i},subplotwidth,nlines,ncols,i);
    9197                        %List all unused options
    92                         displayunused(options.list{i})
     98                        if getfieldvalue(options.list{i},'displayunused',1),
     99                                displayunused(options.list{i})
     100                        end
    93101                end
    94102        catch me,
Note: See TracChangeset for help on using the changeset viewer.