diff scripts/plot/print.m @ 10567:79410269cd21

print.m: Set figure color property to 'none' when printing.
author Ben Abbott <bpabbott@mac.com>
date Sat, 24 Apr 2010 19:48:36 -0400
parents 944aa97069ed
children d1978e7364ad
line wrap: on
line diff
--- a/scripts/plot/print.m
+++ b/scripts/plot/print.m
@@ -586,6 +586,7 @@
     p.paperposition = get (gcf, "paperposition");
     p.paperpositionmode = get (gcf, "paperpositionmode");
     p.paperorientation = get (gcf, "paperorientation");
+    p.color = get (gcf, "color");
     if (p.papersize(1) > p.papersize(2))
       paperorientation = "landscape";
     else
@@ -637,6 +638,7 @@
     unwind_protect
       set (gcf, "paperunits", "inches");
       set (gcf, "units", "pixels");
+      set (gcf, "color", "none");
       restore_properties = true;
       if ((! output_for_printer || is_eps_file) && ! doprint)
         ## If not PDF or PostScript, and the result is not being sent to a printer,