# HG changeset patch # User David Bateman # Date 1263593966 -3600 # Node ID 0c4445ef91a947a882805bf0c02fc4554aaf0e0e # Parent 1e38d9ed1e283fb744ba5d625e295eec96712e18 minor fix to last changeset diff --git a/scripts/plot/__go_draw_figure__.m b/scripts/plot/__go_draw_figure__.m --- a/scripts/plot/__go_draw_figure__.m +++ b/scripts/plot/__go_draw_figure__.m @@ -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