-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Description
Original report at SourceForge, opened Mon Apr 4 10:58:51 2011
I am using pylab to create some plots.
I can create tex in the figure labels. Most of the commands work fine, but
\rightarrow is not recognised.
It is being treated as \r ightarrow
i.e. it gets as far as \r then treats the rest as a separate word
\leftarrow and \Rightarrow both work perfectly.
Please see attached .eps which is generated by the following code:
from pylab import *
x = linspace(0,1,10)
y=sin(x)
figure(1)
plot(x,y)
xlabel('$a \leftarrow b \rightarrow c \Rightarrow $')
savefig('bugtest.eps')
SourceForge Comments
On Mon Apr 4 11:10:14 2011, None wrote:
Sorry, just figured it out.
Using 'raw text' by putting "r" before the open quote fixes the problem:
xlabel(r'$\rightarrow$)
SourceForge History
- On Mon Apr 4 11:10:39 2011, by None: resolution_id: 100
- On Mon Apr 4 10:58:51 2011, by None: File Added: 406735: bugtest.eps
stefanbschneider, ZhangGe6 and Moon-ki8
Metadata
Metadata
Assignees
Labels
No labels