Why does the emf-export change the size of my figure?

3 views (last 30 days)
Hi everybody,
I have a problem with the following statement:
print(handle,'-dmeta' ,filename);
This emf-export changes the size of the figure. The equivalent png-export
print(handle, '-dpng' ,filename,'-r0');
does not. I tried the '-r0' property in the emf-case but it doesn't help. How can I force the emf-case to take the specified figure-size?
My figure has the following properties:
Alphamap = [ (1 by 64) double array]
BackingStore = on
CloseRequestFcn =
Color = [0.8 0.8 0.8]
Colormap = [ (97 by 3) double array]
CurrentAxes = [941.001]
CurrentCharacter =
CurrentObject = []
CurrentPoint = [-0.00106157 -0.00142045]
DockControls = on
DoubleBuffer = on
FileName =
FixedColors = [ (14 by 3) double array]
IntegerHandle = on
InvertHardcopy = on
KeyPressFcn =
MenuBar = figure
MinColormap = [64]
Name = Test
NextPlot = add
NumberTitle = on
PaperUnits = centimeters
PaperOrientation = portrait
PaperPosition = [2.37944 1.18972 24.9048 18.6125]
PaperPositionMode = auto
PaperSize = [29.7 21]
PaperType = custom
Pointer = arrow
PointerShapeCData = [ (16 by 16) double array]
PointerShapeHotSpot = [1 1]
Position = [0.196875 0.1575 0.490625 0.586667]
Renderer = painters
RendererMode = auto
Resize = off
ResizeFcn =
SelectionType = normal
ShareColors = on
ToolBar = auto
Units = normalized
WindowButtonDownFcn =
WindowButtonMotionFcn =
WindowButtonUpFcn =
WindowStyle = normal
WVisual = 00 (RGB 32 GDI, Bitmap, Window)
WVisualMode = auto
BeingDeleted = off
ButtonDownFcn =
Children = [ (31 by 1) double array]
Clipping = on
CreateFcn =
DeleteFcn =
BusyAction = queue
HandleVisibility = on
HitTest = on
Interruptible = off
Parent = [0]
Selected = off
SelectionHighlight = on
Tag =
Type = figure
UIContextMenu = []
UserData = []
Visible = on
Thank you for your help, Bettina
  1 Comment
Christoph
Christoph on 24 Oct 2012
Your "PaperPositionMode" = "auto".
If you would switch to "manual", you would probably get the same result. "manual" prints the figure as it appears on the screen. "auto" prints in standard size. This option may not be available with dmeta (can't try here ob linux machine...).
The "Paper..." parameters can help to layout the figure.

Sign in to comment.

Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!