# HG changeset patch # User Ben Abbott # Date 1335546679 14400 # Node ID 721442e1b82cd6f7e78597a17ce8116d2a7665d4 # Parent 4dc85c4f151b35e630bd1ad65896fcbb32e7b0e8 For gnuplot, render the legend's text objects using the specified textcolor. legend.m: Modify demo. __go_draw_axes__.m: Respect the "textcolor" property for the legend. diff -r 4dc85c4f151b -r 721442e1b82c scripts/plot/legend.m --- a/scripts/plot/legend.m Tue Apr 24 20:27:42 2012 -0400 +++ b/scripts/plot/legend.m Fri Apr 27 13:11:19 2012 -0400 @@ -974,6 +974,7 @@ %! legend ('right') ; %! set (h, 'textposition', 'left') %! set (h, 'textposition', 'right') +%! set (h, 'textcolor', [1 0 1]) %!demo %! clf; diff -r 4dc85c4f151b -r 721442e1b82c scripts/plot/private/__go_draw_axes__.m --- a/scripts/plot/private/__go_draw_axes__.m Tue Apr 24 20:27:42 2012 -0400 +++ b/scripts/plot/private/__go_draw_axes__.m Fri Apr 27 13:11:19 2012 -0400 @@ -1581,8 +1581,9 @@ else fontspec = ""; endif - fprintf (plot_stream, "set key %s %s;\nset key %s %s %s %s;\n", - inout, pos, box, reverse, horzvert, fontspec); + colorspec = get_text_colorspec (hlgnd.textcolor, mono); + fprintf (plot_stream, "set key %s %s;\nset key %s %s %s %s %s;\n", + inout, pos, box, reverse, horzvert, fontspec, colorspec); else fputs (plot_stream, "unset key;\n"); endif