Changeset 2485


Ignore:
Timestamp:
10/22/09 11:11:42 (16 years ago)
Author:
Mathieu Morlighem
Message:

Added caxis support in plot_transient field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/plot/plot_transient_field.m

    r2483 r2485  
    5050        string=[string ',''data'',md.results.transient(' num2str(steps(i)) ').' field  ',''title'',''' field ' at time ' num2str(md.results.transient(steps(i)).time) ' a'''];
    5151end
    52 string=[string ',''colorbar#all'',''on'',''fontsize'',' num2str(fontsize) ',''fontweight'',''' fontweight ''',''figure'',' num2str(figurenum) ');'];
     52string=[string ',''colorbar#all'',''on'',''fontsize'',' num2str(fontsize) ',''fontweight'',''' fontweight ''',''figure'',' num2str(figurenum)];
     53
     54%Add options
     55if exist(options,'caxis'),
     56        caxis_opt=getfieldvalue(options,'caxis',[]);
     57        string=[string ',''caxis'',[' caxis_opt(1) ',' caxis_opt(2) ']'];
     58end
     59
     60%Execute string
     61string=[string ');'];
    5362eval(string);
    5463clear string;
Note: See TracChangeset for help on using the changeset viewer.