问题
I have to print a large poster, containing a matrix of figures, and it would be very practical for me to let MATLAB arrange them. Unluckily, subplots are displayed to fit a certain figure size, so are tiny and distorted. Instead of fitting the figure size, I would like to fit the paper size of my poster.
I have tried with set(gcf,'Position'..)
, and also changing papersize, but I still don't see the expected result.
Is there something I can try to let MATLAB use, say, a whole A0 sheet to plot?
Here's my current output:
回答1:
%just a dummy example
r=11;
c=4;
f=figure()
for inx=1:r*c
subplot(r,c,inx)
bar(randi(10,4,3))
end
%print it on A0
set(f,'paperunits','centimeter')
set(f,'papersize',[84.1,118.9])
set(f,'paperposition',[0 0 84.1 118.9]);
print(f,'example.pdf','-dpdf','-opengl');
If I print such a Plot on A0 everything looks fine. Your screen might be too small, but it fits on a A0 sheet.
来源:https://stackoverflow.com/questions/29280919/plot-a-big-figure-with-many-subfigures-in-matlab