Changeset 2819
- Timestamp:
- 01/13/10 12:08:01 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public/plot
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/applyoptions.m
r2784 r2819 87 87 %Caxis 88 88 if exist(options,'caxis'), 89 caxis(getfieldvalue(options,'caxis')); 89 if exist(options,'log'), 90 logvalue=getfieldvalue(options,'log'); 91 caxis(log(getfieldvalue(options,'caxis'))/log(logvalue)); 92 else 93 caxis(getfieldvalue(options,'caxis')); 94 end 90 95 end 91 96 -
issm/trunk/src/m/classes/public/plot/plot_manager.m
r2694 r2819 1 function plot_manager(md,options, width,i);1 function plot_manager(md,options,subplotwidth,nlines,ncols,i); 2 2 %PLOT__MANAGER - distribute the plots, called by plotmodel 3 3 % … … 122 122 123 123 %standard plot: 124 subplot( width,width,i);124 subplot(nlines,ncols,i); 125 125 plot_unit(x,y,z,elements,data2,isongrid,is2d,isquiver,options); 126 126 -
issm/trunk/src/m/classes/public/plot/plot_mesh.m
r2439 r2819 1 function plot_mesh(md,options, width,i);1 function plot_mesh(md,options,nlines,ncols,i); 2 2 %PLOT_MESH - plot model mesh 3 3 % … … 11 11 12 12 %plot mesh 13 subplot( width,width,i);13 subplot(nlines,ncols,i); 14 14 15 15 %plot mesh -
issm/trunk/src/m/classes/public/plot/plotmodel.m
r2623 r2819 10 10 options=plotoptions(varargin{:}); 11 11 12 %get number of subplot12 %get number of subplots 13 13 subplotwidth=ceil(sqrt(options.numberofplots)); 14 15 %if nlines and ncols specified, then bypass. 16 if exist(options.list{1},'nlines'), 17 nlines=getfieldvalue(options.list{1},'nlines'); 18 else 19 nlines=subplotwidth; 20 end 21 22 if exist(options.list{1},'ncols'), 23 ncols=getfieldvalue(options.list{1},'ncols'); 24 else 25 ncols=subplotwidth; 26 end 27 28 %check that nlines and ncols were given at the same time! 29 if ((exist(options.list{1},'ncols') & ~exist(options.list{1},'ncols')) | (~exist(options.list{1},'ncols') & exist(options.list{1},'ncols'))) 30 error('plotmodel error message: nlines and ncols need to be specified together, or not at all'); 31 end 14 32 15 33 %Get figure number and number of plots … … 30 48 31 49 %call unit plot 32 plot_manager(md,options.list{i},subplotwidth, i);50 plot_manager(md,options.list{i},subplotwidth,nlines,ncols,i); 33 51 34 52 end
Note:
See TracChangeset
for help on using the changeset viewer.