Mercurial > octave
changeset 22567:d5e775944809 stable
Use 'color' property when 'markeredgecolor' is 'auto' for gnuplot toolkit (bug #47974).
* __gnuplot_draw_axes__.m (do_linestyle_command): Check if obj.markeredgecolor
is "auto" and use obj.color if it is to assign an RGB color rather than use
palette input data.
author | Daniel J Sebald <daniel.sebald@ieee.org> |
---|---|
date | Fri, 30 Sep 2016 14:32:37 -0500 |
parents | d14c44923705 |
children | 6b2a1b2c1576 |
files | scripts/plot/util/private/__gnuplot_draw_axes__.m |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m Fri Sep 30 11:05:41 2016 -0700 +++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m Fri Sep 30 14:32:37 2016 -0500 @@ -1982,9 +1982,14 @@ endif fprintf (plot_stream, "set style line %d default;\n", idx); fprintf (plot_stream, "set style line %d", idx); - if (isnumeric (obj.markeredgecolor)) + if (isnumeric (obj.markeredgecolor) || strcmp (obj.markeredgecolor, "auto")) + if (isnumeric (obj.markeredgecolor)) + edgecolor = obj.markeredgecolor; + else + edgecolor = obj.color; + end fprintf (plot_stream, " linecolor rgb \"#%02x%02x%02x\"", - round (255*obj.markeredgecolor)); + round (255*edgecolor)); else fprintf (plot_stream, " palette"); endif