changeset 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 8ac4ab4ae5f4
children bd1a5149c53e
files scripts/plot/util/private/__go_draw_axes__.m
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__go_draw_axes__.m	Thu Aug 07 10:13:30 2014 -0700
+++ b/scripts/plot/util/private/__go_draw_axes__.m	Tue Aug 05 15:26:56 2014 +0100
@@ -153,10 +153,11 @@
     if (isempty (t.string))
       fputs (plot_stream, "unset title;\n");
     else
+      colorspec = get_text_colorspec (get (axis_obj.title, "color"), mono);
       [tt, f, s] = __maybe_munge_text__ (enhanced, t, "string");
       fontspec = create_fontspec (f, s, gnuplot_term);
-      fprintf (plot_stream, "set title \"%s\" %s %s;\n",
-               undo_string_escapes (tt), fontspec,
+      fprintf (plot_stream, "set title \"%s\" %s %s %s;\n",
+               undo_string_escapes (tt), fontspec, colorspec, 
                __do_enhanced_option__ (enhanced, t));
     endif
   endif