Save matlab plot as EMF-file in specific size -
i tried following script in matlab 2014b , 2015a, size of emf-file not satisfactory:
fig = figure; bode(1/tf('s')); set(fig,'paperpositionmode','auto'); set(fig, 'position', [0 0 400 300]); print(fig,'test1','-dpng','-r0','-loose'); % here result picture 300 x 400 ->ok print(fig,'test2','-dmeta','-r0','-loose'); % here size 215,19 x 286,69 -> not ok i tried use:
set(fig,'paperunits','points','paperposition',[0 0 400 300]) but not change anything. makes no difference if '-loose' used or not. mistake?
edit: can test script in matlab 2015b or 2013b?
remark: claimed emf-graphic has not size. has one, because designed printers specifiy size how printed.
thanks help.
set() behaviour changes whether have multiple figures on screen.
i on mac, can't save emf files, since saved fig, try set() fig , not gcf first argument.
gcf get current figure if have multiple figures on-screen should pay attention. although saving figure handle, there's nothing worry about.
Comments
Post a Comment