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

per isakson
per isakson 2014년 3월 9일
편집: per isakson 2014년 3월 9일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

질문:

2014년 3월 6일

편집:

2014년 3월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by