【发布时间】:2011-04-05 18:47:07
【问题描述】:
我有一个图需要在纸上以精确的尺寸打印出来,因为它是按比例绘制的,并且可以根据它在纸上测量一些东西。最简单(有可能)的方法是什么?
【问题讨论】:
我有一个图需要在纸上以精确的尺寸打印出来,因为它是按比例绘制的,并且可以根据它在纸上测量一些东西。最简单(有可能)的方法是什么?
【问题讨论】:
编辑:
%# create some plot, and make axis fill entire figure
plot([0 5 0 5], [0 10 10 0]), axis tight
set(gca, 'Position',[0 0 1 1])
%# set size of figure's "drawing" area on screen
set(gcf, 'Units','centimeters', 'Position',[0 0 5 10])
%# set size on printed paper
%#set(gcf, 'PaperUnits','centimeters', 'PaperPosition',[0 0 5 10])
%# WYSIWYG mode: you need to adjust your screen's DPI (*)
set(gcf, 'PaperPositionMode','auto')
%# save as TIFF
print -dtiff -r0 out.tiff
(*):http://www.mathworks.com/help/matlab/creating_plots/printing-images.html
【讨论】: