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 Comment

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.

Sign in to comment.

Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Products

Asked:

on 6 Mar 2014

Edited:

on 10 Mar 2014

Community Treasure Hunt

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

Start Hunting!