comparison scripts/plot/util/private/__go_draw_axes__.m @ 18996:538f6492f21c

Honour the title.color property when plotting with gnuplot (bug #42927). * scripts/plot/util/private/__go_draw_axes__.m: extract and use the title text colorspec when creating the title command.
author Serviscope Minor <serviscope_minor@verybigfrog.com>
date Tue, 05 Aug 2014 15:26:56 +0100
parents f84361735a40
children bd1a5149c53e
comparison
equal deleted inserted replaced
18995:8ac4ab4ae5f4 18996:538f6492f21c
151 if (! isempty (axis_obj.title)) 151 if (! isempty (axis_obj.title))
152 t = get (axis_obj.title); 152 t = get (axis_obj.title);
153 if (isempty (t.string)) 153 if (isempty (t.string))
154 fputs (plot_stream, "unset title;\n"); 154 fputs (plot_stream, "unset title;\n");
155 else 155 else
156 colorspec = get_text_colorspec (get (axis_obj.title, "color"), mono);
156 [tt, f, s] = __maybe_munge_text__ (enhanced, t, "string"); 157 [tt, f, s] = __maybe_munge_text__ (enhanced, t, "string");
157 fontspec = create_fontspec (f, s, gnuplot_term); 158 fontspec = create_fontspec (f, s, gnuplot_term);
158 fprintf (plot_stream, "set title \"%s\" %s %s;\n", 159 fprintf (plot_stream, "set title \"%s\" %s %s %s;\n",
159 undo_string_escapes (tt), fontspec, 160 undo_string_escapes (tt), fontspec, colorspec,
160 __do_enhanced_option__ (enhanced, t)); 161 __do_enhanced_option__ (enhanced, t));
161 endif 162 endif
162 endif 163 endif
163 164
164 if (! isempty (axis_obj.xlabel)) 165 if (! isempty (axis_obj.xlabel))