Changeset 2623
- Timestamp:
- 11/06/09 14:55:14 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/applyoptions.m
r2501 r2623 189 189 if exist(options,'axis') 190 190 eval(['axis ' getfieldvalue(options,'axis')]); 191 else 192 axis tight equal; 191 193 end 192 194 -
issm/trunk/src/m/classes/public/plot/plotmodel.m
r2439 r2623 23 23 figure(figurenumber),clf; 24 24 25 %Use zbuffer renderer (snoother colors) 26 set(gcf,'Renderer','zbuffer'); 27 25 28 %Go through all data plottable 26 29 for i=1:numberofplots, -
issm/trunk/src/m/classes/public/printmodel.m
r844 r2623 7 7 % printmodel(filename,format) 8 8 9 set(gcf,'Renderer','zbuffer'); %fixes a bug on Mac OS X (not needed in future Matlab version) 10 frame=getframe();image=frame2im(frame); 11 imwrite(image,filename,format); 9 %Get current figure 10 fig=gcf; 11 12 %Set the PaperPositionMode property to auto before printing the figure. 13 %http://www.mathworks.com/access/helpdesk/help/techdoc/creating_plots/f3-124745.html 14 set(fig, 'PaperPositionMode', 'auto'); 15 16 %Use higher resolution to anti-alias and use zbuffer to have smooth colors 17 print(fig, '-zbuffer', ['-r' num2str(get(0,'ScreenPixelsPerInch')*2)], ['-d' format],filename);
Note:
See TracChangeset
for help on using the changeset viewer.