Mercurial > octave-dspies
changeset 18999:2ceb734a663f
Set axis label colors correctly when plotting with gnuplot.
* __go_draw_axes__.m: Change the xlabel colour from gca.xcolor to
gca.xlabel.color. Same for y and z labels.
author | Serviscope Minor <serviscope_minor@verybigfrog.com> |
---|---|
date | Fri, 08 Aug 2014 15:35:49 +0100 |
parents | 956fc864c39f |
children | 1ad621d894ba |
files | scripts/plot/util/private/__go_draw_axes__.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/private/__go_draw_axes__.m Thu Aug 07 20:24:59 2014 -0700 +++ b/scripts/plot/util/private/__go_draw_axes__.m Fri Aug 08 15:35:49 2014 +0100 @@ -165,7 +165,7 @@ if (! isempty (axis_obj.xlabel)) t = get (axis_obj.xlabel); angle = t.rotation; - colorspec = get_text_colorspec (axis_obj.xcolor, mono); + colorspec = get_text_colorspec (t.color, mono); if (isempty (t.string)) fprintf (plot_stream, "unset xlabel;\n"); fprintf (plot_stream, "unset x2label;\n"); @@ -193,7 +193,7 @@ if (! isempty (axis_obj.ylabel)) t = get (axis_obj.ylabel); angle = t.rotation; - colorspec = get_text_colorspec (axis_obj.ycolor, mono); + colorspec = get_text_colorspec (t.color, mono); if (isempty (t.string)) fprintf (plot_stream, "unset ylabel;\n"); fprintf (plot_stream, "unset y2label;\n"); @@ -221,7 +221,7 @@ if (! isempty (axis_obj.zlabel)) t = get (axis_obj.zlabel); angle = t.rotation; - colorspec = get_text_colorspec (axis_obj.zcolor, mono); + colorspec = get_text_colorspec (t.color, mono); if (isempty (t.string)) fputs (plot_stream, "unset zlabel;\n"); else