diff scripts/plot/util/print.m @ 21859:ec3adcec1337

Fix "inverthardcopy" for transparent axes and plotyy (bug #48161). * plotyy.m: Only set the second axes color to "none" * print.m: When using "inverthardcopy" don't change the color of transparent axes to white
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Thu, 09 Jun 2016 16:41:39 +0200
parents b002b4331a12
children 4c0f78b3c86f
line wrap: on
line diff
--- a/scripts/plot/util/print.m	Fri Jun 10 18:36:05 2016 -0700
+++ b/scripts/plot/util/print.m	Thu Jun 09 16:41:39 2016 +0200
@@ -396,7 +396,8 @@
     if (do_hardcopy)
       ## Set background to white for all top-level axes objects
       hax = findall (opts.figure, "-depth", 1, "type", "axes",
-                                  "-not", "tag", "legend");
+                                  "-not", "tag", "legend",
+                                  "-not", "color", "none");
       m = numel (props);
       for n = 1:numel(hax)
         props(m+n).h = hax(n);