![]() |
| Script plot_print1.m | |||
|
|||
|
x=-pi:.1:pi;y=sin(x);plot(x,y);axis tight;
title('The sine function');legend('sine','location','best'); xlabel('abscissa');ylabel('ordinate') set(gca,'units','centimeters') p = get(gca,'Position') t= get(gca,'tightinset') outp = get(gca,'OuterPosition') set(gcf,'PaperUnits','centimeters') % set(gcf,'PaperPositionMode','manual') set(gcf,'PaperPositionMode','auto') paper=get(gcf,'PaperPosition') val=[p(1)+paper(1), p(2)+paper(2),+p(3),p(4)] printpreview(gcf) |
|||
| Back | |||