Possible bug - how to export rescaled area plots without error?
Ältere Kommentare anzeigen
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 Kommentar
per isakson
am 9 Mär. 2014
Bearbeitet: per isakson
am 9 Mär. 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.
Antworten (0)
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!