Mercurial > hg > octave-terminal
changeset 14580:721442e1b82c
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.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 27 Apr 2012 13:11:19 -0400 |
parents | 4dc85c4f151b |
children | 7d11812c52aa |
files | scripts/plot/legend.m scripts/plot/private/__go_draw_axes__.m |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/legend.m +++ b/scripts/plot/legend.m @@ -974,6 +974,7 @@ %! legend ('right') ; %! set (h, 'textposition', 'left') %! set (h, 'textposition', 'right') +%! set (h, 'textcolor', [1 0 1]) %!demo %! clf;
--- a/scripts/plot/private/__go_draw_axes__.m +++ b/scripts/plot/private/__go_draw_axes__.m @@ -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