Plot a big figure with many subfigures in matlab

北城余情 提交于 2019-12-02 11:50:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!