comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Escape "/" for NG LEGEND
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Escape "/" for NG LEGEND [message #87554 is a reply to message #87553] Fri, 14 February 2014 12:31 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> This was discussed recently here. Can't remember how it was resolved,
> but Chris Torrance responded with some kind of workaround.

Here is Chris's response:

Yes, unfortunately, this happens because the "/" is used to separate the
different object graphics pieces, just like a directory separator.

But the easiest solution is to just use the "LaTeX" / character instead,
like this:

p = plot(x, y, name='2008 $\slash$ 2009')
l = legend()

Notice that I put an extra space before and after the slash character.
At least on my Mac, if you don't have the space, it doesn't leave enough
room around the slash. Maybe because it is a Unicode "math" character.
Also, I used single quotes so it doesn't think the 2008 is some sort of
weird octal number.

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Postgresql and PV-Wave on Linux
Next Topic: Reconstruct surface from gradient field?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 19:42:56 PDT 2025

Total time taken to generate the page: 0.63835 seconds