changeset 10120:0c4445ef91a9

minor fix to last changeset
author David Bateman <dbateman@free.fr>
date Fri, 15 Jan 2010 23:19:26 +0100
parents 1e38d9ed1e28
children b5cc666da6ca
files scripts/plot/__go_draw_figure__.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/__go_draw_figure__.m	Fri Jan 15 23:09:57 2010 +0100
+++ b/scripts/plot/__go_draw_figure__.m	Fri Jan 15 23:19:26 2010 +0100
@@ -70,7 +70,7 @@
 	fputs (plot_stream, "set origin 0, 0\n");
 	fputs (plot_stream, "set size 1, 1\n");
         bg = get (h, "color");
-        if (isnumeric (bg))
+        if (isnumeric (bg) && !isequal (bg, [1,1,1]))
           fprintf (plot_stream, "set obj 1 rectangle from screen 0,0 to screen 1,1 behind fc rgb \"#%02x%02x%02x\"\n", 255 * bg);
           bg_is_set = true;
         else
@@ -86,7 +86,7 @@
 	      unwind_protect
 		set (kids(i), "units", "normalized");
                 fg = get (kids(i), "color");
-                if (isnumeric (fg))
+                if (isnumeric (fg) && !isequal (fg, [1,1,1]))
                   fprintf (plot_stream, "set obj 2 rectangle from graph 0,0 to graph 1,1 behind fc rgb \"#%02x%02x%02x\"\n", 255 * fg);
                   fg_is_set = true;
                 else