Changeset 18292
- Timestamp:
- 07/27/14 18:14:12 (11 years ago)
- Location:
- issm/branches/trunk-jpl-ad2/src/m/plot
- Files:
-
- 4 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-ad2/src/m/plot/applyoptions.m
r17708 r18292 139 139 %colorbar 140 140 if getfieldvalue(options,'colorbar',1)==1, 141 if getfieldvalue(options,'rgb',0), 142 %this is an rgb plot, very different type of colorbar! 143 rgbcolorbar(options); 144 colorbar off 145 return; 146 end 141 147 if exist(options,'colorbarcornerposition'), 142 148 c=colorbar(getfieldvalue(options,'colorbarcornerposition'),'peer',gca); … … 240 246 else 241 247 %do nothing 242 243 248 end 244 249 -
issm/branches/trunk-jpl-ad2/src/m/plot/plot_manager.m
r17718 r18292 159 159 end 160 160 161 %Are we rendering on a browser? 162 if exist(options,'webgl'), 163 plot_gl(md,data,options); 164 return; 165 end 166 161 167 %Figure out if this is a semi-transparent plot. 162 168 if exist(options,'googlemaps'), -
issm/branches/trunk-jpl-ad2/src/m/plot/plot_unit.m
r18162 r18292 54 54 patch( 'Faces',[C A D],'Vertices', [x y z],'FaceVertexCData',data(:),'FaceColor','interp','EdgeColor',edgecolor); 55 55 else 56 %do we have several columns to data, in which case we are dealing with an rgb plot? 56 57 A=elements(:,1); B=elements(:,2); C=elements(:,3); 57 patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 58 if size(data,2)==3, 59 patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', data,'FaceColor','interp','EdgeColor',edgecolor); 60 else 61 patch( 'Faces', [A B C], 'Vertices', [x y z],'FaceVertexCData', data(:),'FaceColor','interp','EdgeColor',edgecolor); 62 end 58 63 end 59 64 -
issm/branches/trunk-jpl-ad2/src/m/plot/plotmodel.m
r14401 r18292 34 34 35 35 %Create figure 36 f=figure(figurenumber);clf; 37 if strcmpi(getfieldvalue(options.list{1},'visible','on'),'off'), 38 set(f,'Visible','Off'); 36 if ~exist(options.list{1},'webgl'), 37 f=figure(figurenumber);clf; 38 if strcmpi(getfieldvalue(options.list{1},'visible','on'),'off'), 39 set(f,'Visible','Off'); 40 end 41 else 42 plot_gl(md,options.list); 43 return; 39 44 end 40 45 -
issm/branches/trunk-jpl-ad2/src/m/plot/processdata.m
r17687 r18292 62 62 %quiver? 63 63 if datasize(2)>1, 64 datatype=3; 64 65 %rgb plot or quiver plot? 66 if getfieldvalue(options,'rgb',0), 67 datatype=2; 68 return; 69 else 70 datatype=3; 71 end 65 72 66 73 %check number of columns, add zeros if necessary,
Note:
See TracChangeset
for help on using the changeset viewer.