help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: special characters in title and label


From: John W. Eaton
Subject: Re: special characters in title and label
Date: Wed, 31 Oct 2007 22:17:23 -0400

On  1-Nov-2007, Evan wrote:

| On 11/1/07, John W. Eaton <address@hidden> wrote:
| >
| >   xlabel ("$\\tilde{w}$")
| >
| 
| I find that for legend one should use
| 
| legend("$\\\\tilde{w}$")
| 
| which is not consistent with xlabel and title
| is this a bug?

Please try the following patch.

Please report bugs to the address@hidden list.

Thanks,

jwe


scripts/ChangeLog:

2007-10-31  John W. Eaton  <address@hidden>

        * plot/__go_draw_axes__.m: Call undo_string_escapes on obj.keylabel.


Index: scripts/plot/__go_draw_axes__.m
===================================================================
RCS file: /cvs/octave/scripts/plot/__go_draw_axes__.m,v
retrieving revision 1.53
diff -u -u -r1.53 __go_draw_axes__.m
--- scripts/plot/__go_draw_axes__.m     31 Oct 2007 16:23:25 -0000      1.53
+++ scripts/plot/__go_draw_axes__.m     1 Nov 2007 02:13:48 -0000
@@ -302,7 +302,8 @@
          if (isempty (obj.keylabel))
            titlespec{data_idx} = "title \"\"";
          else
-           titlespec{data_idx} = strcat ("title \"", obj.keylabel, "\"");
+           tmp = undo_string_escapes (obj.keylabel);
+           titlespec{data_idx} = strcat ("title \"", tmp, "\"");
          endif
          [style, typ, with] = do_linestyle_command (obj, data_idx, 
plot_stream);
          usingclause{data_idx} = "";
@@ -578,7 +579,8 @@
          if (isempty (obj.keylabel))
            titlespec{data_idx} = "title \"\"";
          else
-           titlespec{data_idx} = strcat ("title \"", obj.keylabel, "\"");
+           tmp = undo_string_escapes (obj.keylabel);
+           titlespec{data_idx} = strcat ("title \"", tmp, "\"");
          endif
          usingclause{data_idx} = "";
          if (have_newer_gnuplot || isnan (typ))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]