function printme(width)

set(gcf, 'PaperUnits', 'centimeters');
papersize = get(gcf, 'PaperSize');
paperratio = papersize(2) / papersize(1);
set(gcf, 'PaperSize', [1 paperratio] * width);
set(gcf, 'Renderer', 'painters')

