Changeset 22218
- Timestamp:
- 11/03/17 10:59:22 (7 years ago)
- Location:
- issm/branches/trunk-larour-NatGeoScience2016/src/m/plot
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-larour-NatGeoScience2016/src/m/plot/applyoptions.m
r21759 r22218 312 312 if exist(options,'contourlevels'), 313 313 plot_contour(md,data,options); 314 end 315 316 %coastlines 317 if exist(options,'coastline'), 318 plot_coastlines(md.mesh,options); 314 319 end 315 320 -
issm/branches/trunk-larour-NatGeoScience2016/src/m/plot/plot_contour.m
r21759 r22218 21 21 if datatype==1, 22 22 %elements -> take average 23 data=averaging(md,data,0) ;23 data=averaging(md,data,0) 24 24 elseif datatype==2, 25 25 %nodes -> do nothing … … 246 246 if isplanet, 247 247 if (max(xc)-min(xc)+max(yc)-min(yc)+max(zc)-min(zc))<dist, continue; end 248 h=[h;patch('Xdata',[xc;NaN],'Ydata',[yc;NaN],'Zdata',[zc;NaN],'facecolor','none',' linewidth',linewidth)];248 h=[h;patch('Xdata',[xc;NaN],'Ydata',[yc;NaN],'Zdata',[zc;NaN],'facecolor','none','edgecolor',color,'linewidth',linewidth)]; 249 249 c = horzcat([level, xc'; length(xc), yc'; length(xc), zc']); 250 250 else
Note:
See TracChangeset
for help on using the changeset viewer.