# HG changeset patch # User Ben Abbott # Date 1337537933 14400 # Node ID 161d06a52360e24585a685a9c1780623188e0fa9 # Parent dee1452ca601772d98437a46f0a631a66f245917 Gnuplot toolkit: Unset color from previous axis. __go_draw_figure__.m: unset the axes foreground color if it was set for the previous axis/sibling. diff -r dee1452ca601 -r 161d06a52360 scripts/plot/private/__go_draw_figure__.m --- a/scripts/plot/private/__go_draw_figure__.m Sat May 19 11:31:37 2012 -0400 +++ b/scripts/plot/private/__go_draw_figure__.m Sun May 20 14:18:53 2012 -0400 @@ -44,6 +44,7 @@ else bg_is_set = false; endif + fg_was_set = false; for i = nkids:-1:1 type = get (kids(i), "type"); @@ -142,6 +143,11 @@ if (isnumeric (fg) && strcmp (get (kids(i), "visible"), "on")) 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; + fg_was_set = true; + elseif (fg_was_set) + fprintf (plot_stream, "unset obj 2\n"); + fg_is_set = false; + fg_was_set = false; else fg_is_set = false; endif