[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35363] fplot key messed up
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #35363] fplot key messed up |
Date: |
Sat, 28 Jan 2012 17:42:54 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 |
Update of bug #35363 (project octave):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #1:
This bug is confirmed. It is a problem with all text output to gnuplot. For
example, the following also shows the issue.
close all;
graphics_toolkit gnuplot;
text (0,0, "@(t) sin (t));
The issue is gnuplot's extended interpretation of text strings. Most of the
time this is good because '^' is very naturally interpreted as a superscript
and '_' is interpreted as a subscript. The issues is that '@' is a special
character indicating that a zero-width box should surround the next bit of
text.
As an immediate workaround, you can escape the special character with a ''.
The following will work.
fun = @(t) sin(t);
fplot(fun, [-5,5])
legend ('@(t) sin(t)');
The longer term fix is to get Octave's backend to do the same work of escaping
special characters in user strings. I'm adding Ben Abbott to the CC list for
this bug since he specializes in this part of Octave.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35363>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/