Mercurial > hg > octave-lyh
changeset 14663:161d06a52360
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.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sun, 20 May 2012 14:18:53 -0400 |
parents | dee1452ca601 |
children | 4f458e882516 |
files | scripts/plot/private/__go_draw_figure__.m |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/private/__go_draw_figure__.m +++ b/scripts/plot/private/__go_draw_figure__.m @@ -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