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 Exchange2-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