octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #37554] PaperPositionMode = 'auto' is ignored for printing
Date: Sat, 20 Oct 2012 03:21:00 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14

Follow-up Comment #5, bug #37554 (project octave):

I took a quick look.  More testing (maybe some tests should be added to the
script?) is needed, but this change below should fix this.


$ hg diff
diff --git a/scripts/plot/private/__print_parse_opts__.m
b/scripts/plot/private/__print_parse_opts__.m
--- a/scripts/plot/private/__print_parse_opts__.m
+++ b/scripts/plot/private/__print_parse_opts__.m
@@ -241,9 +241,17 @@
 
   if (isfigure (arg_st.figure))
     __graphics_toolkit__ = get (arg_st.figure, "__graphics_toolkit__");
+    paperpositionmode = get (arg_st.figure, "paperpositionmode");
+    if (strcmpi (paperpositionmode, "auto"))
+      arg_st.canvas_size = get (arg_st.figure, "position")(3:4);
+    endif
   else
     ## Allow tests when no figures are present.
     __graphics_toolkit__ = get (0, "defaultfigure__graphics_toolkit__");
+    paperpositionmode = get (0, "defaultfigurepaperpositionmode");
+    if (strcmpi (paperpositionmode, "auto"))
+      arg_st.canvas_size = get (0, "defaultfigureposition")(3:4);
+    endif
   endif
 
   if (strcmp (__graphics_toolkit__, "gnuplot")


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37554>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]