# HG changeset patch # User David Bateman # Date 1263953387 -3600 # Node ID ee18258bc00291bd7268a477e436d788fb2eb736 # Parent 4516a0c97ced3b0037a8403dfa587e49c60ce0e1 Also treat white figure and axes color properties diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,9 @@ 2010-01-20 David Bateman + * plot/__go_draw_figure__.m: Also plot white foreground and + background colors. + * plot/plotyy.m: Set axes colors to "none". + * plot/__go_draw_axes__.m (next_marker): Remove and all uses of this function. Partially respect the markeredgecolor and markerfacecolor properties. 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) && !isequal (bg, [1,1,1])) + if (isnumeric (bg)) 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) && !isequal (fg, [1,1,1])) + if (isnumeric (fg)) 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 diff --git a/scripts/plot/plotyy.m b/scripts/plot/plotyy.m --- a/scripts/plot/plotyy.m +++ b/scripts/plot/plotyy.m @@ -145,6 +145,7 @@ set (ax(1), "ycolor", getcolor (h1(1))); set (ax(1), "xlim", xlim); + set (ax(1), "color", "none"); cf = gcf (); set (cf, "nextplot", "add");