comparison savepng.m @ 691:527a7b954f26 feature/quantumTriangles

Merge with default
author Ylva Rydin <ylva.rydin@telia.com>
date Thu, 14 Sep 2017 16:00:36 +0200
parents 236744dda401
children
comparison
equal deleted inserted replaced
520:f235284e2eb1 691:527a7b954f26
9 % Copy size of figure in centimeters to a place where saveas will honor it 9 % Copy size of figure in centimeters to a place where saveas will honor it
10 h.Units = 'centimeters'; 10 h.Units = 'centimeters';
11 h.PaperUnits = 'centimeters'; 11 h.PaperUnits = 'centimeters';
12 h.PaperPosition(3:4) = h.Position(3:4); 12 h.PaperPosition(3:4) = h.Position(3:4);
13 13
14 % Save as a bugged eps file.
15 print(h,filename,'-dpng',sprintf('-r%d',dpi)); 14 print(h,filename,'-dpng',sprintf('-r%d',dpi));
16 15
17 h.Units = handle_units; % Restore the old units 16 h.Units = handle_units; % Restore the old units
18
19
20
21 end 17 end