makefigwide.m (510B)
1 function []=makefigwide(); 2 % 3 % Call to stretch the width of the figure -- good for printing 4 % GDP per capita over a long period of time, or for time series line 5 % plots. 6 7 8 set(gcf, 'PaperUnits', 'inches'); 9 papersize = get(gcf, 'PaperSize'); 10 width = 9; % Initialize a variable for width. 11 height = 5; % Initialize a variable for height. 12 left = (papersize(1)- width)/2; 13 bottom = (papersize(2)- height)/2; 14 myfiguresize = [left, bottom, width, height]; 15 set(gcf, 'PaperPosition', myfiguresize);