changeset 17672:36917b3db6b2

orient.m: Setting 'landscape' orientation also sets plot to take up full page. * scripts/plot/appearance/orient.m: Check for 'landscape' orientation and set paperposition to be entire page minus 0.25" margins.
author Rik <rik@octave.org>
date Thu, 17 Oct 2013 09:11:24 -0700
parents ddfc1600a311
children 9f6e4e5c2bac
files scripts/plot/appearance/orient.m
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/appearance/orient.m	Thu Oct 17 08:58:50 2013 -0700
+++ b/scripts/plot/appearance/orient.m	Thu Oct 17 09:11:24 2013 -0700
@@ -65,6 +65,11 @@
         set (cf, "papersize", papersize([2, 1]));
         set (cf, "paperposition", paperposition([2, 1, 4, 3]));
       endif
+      ## landscape also sets the plot to occupy the entire page
+      if (strcmpi (orientation, "landscape"))
+        papersize = get (cf, "papersize");
+        set (cf, "paperposition", [0.25, 0.25, (papersize - 0.5)]);
+      endif
     elseif (strcmpi (varargin{1}, 'tall'))
       orient ("portrait");
       papersize = get (cf, "papersize");