Possible bug - how to export rescaled area plots without error?

EDIT: Mathworks provided me with the aswer. The key is to set the 'PaperPositionMode' figure property to 'auto' in the following way:
set(gcf,'PaperPositionMode', 'auto')
/EDIT
Hi, I have a weird bug when making some fill charts. When I export a figure as .emf, sometimes it only prints half the figure. Before and after:
The problem occurs when I rescale the chart and have alpha turned on. What is wrong and what can I do about it? Code:
% Dummy data
x=[1 1 2 2];
y=[1 2 2 1];
% Save as is
figure
fill(x,y,'b')
alpha(0.5)
saveas(gcf,'Original','emf')
% Save by size
figure
fill(x,y,'b')
alpha(0.5)
set(gcf,'units','centimeters','Position',[2 2 13 8]);
saveas(gcf,'Rescaled','emf')

1 comentario

per isakson
per isakson el 9 de Mzo. de 2014
Editada: per isakson el 9 de Mzo. de 2014
Your code on my R2013a 64bit, Win7, reproduces your result. This looks like a case for the tech support. The size of my emf-files are 920KB and 584KB, respectively.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 6 de Mzo. de 2014

Editada:

el 10 de Mzo. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by