# HG changeset patch # User Serviscope Minor # Date 1407508549 -3600 # Node ID 2ceb734a663f9a1bdcb69219378cfac714532aea # Parent 956fc864c39f5fbdd83f7773b1daa8e898a726f3 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. diff -r 956fc864c39f -r 2ceb734a663f scripts/plot/util/private/__go_draw_axes__.m --- 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