print to emf file uses screen size but I want papertype size.

print to emf file uses screen size but I want papertype size.

Post by Jos » Wed, 24 Jun 2009 22:55:04


When I create complex figures I want to save them as EMF files using a large papertype so all labels are well seperated and can be clearly read. However, if I print using -dmeta, I get the figure size of the screen which is usually too small to seperate all labels well. If I use -dpng I get the file I want that uses the full size of the papertype but this is a bitmap and I want a vector oriented file. Anybody got an idea how to fix this? I included a small sample code which demonstrates the effect.

%example of problem:
x = -pi:0.01:pi;
plot(x,sin(x));
title('Sine Plot');

set(gcf, 'PaperType', 'A2');
set(gcf, 'PaperUnits', 'normalized');
set(gcf, 'PaperPosition', [0 0 1 1]);
print -dpng fig1
print -dmeta fig1
 
 
 

print to emf file uses screen size but I want papertype size.

Post by Richard Qu » Wed, 24 Jun 2009 23:14:26


I think this is a bug. Clear the "match figure screen size" checkbox on the
figure's Edit Menu -> Copy Options dialog box

--

Richard Quist
Software Developer
The MathWorks, Inc.

 
 
 

print to emf file uses screen size but I want papertype size.

Post by Jos » Wed, 24 Jun 2009 23:38:01

>


Thanks! It works. Is there perhaps some way to change this setting using matlab commands and not the menu's?
 
 
 

print to emf file uses screen size but I want papertype size.

Post by Richard Qu » Thu, 25 Jun 2009 02:50:28


As far as I know, there is no documented way to modify the MATLAB preferences
file from within MATLAB.

--

Richard Quist
Software Developer
The MathWorks, Inc.