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

Home » Public Forums » archive » PLOT and LEGEND Function Graphic
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: PLOT and LEGEND Function Graphic [message #87236 is a reply to message #87235] Sat, 18 January 2014 22:32 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Saturday, January 18, 2014 9:43:33 PM UTC-7, Gompie wrote:
> Hi,
>
> Now that I have made the mistake of using the function graphics over Dave's cgplot functions can you please help me with the following error that I am getting in function graphics.
>
>
>
> When I give a=PLOT(x,y, NAME="2008/2009")
>
> I get the error.
>
> PLOT: The identifier property value cannot contain '/' characters.
>
>
>
> I have to use NAME keyword because I later on use the LEGEND function graphic which uses NAME to identify the plot.
>
> Any help in either getting the PLOT to accept the "/" or to get the LEGEND to show "2008/2009" against the target plot.
>
> GlanPlon

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.

Hope this helps!

-Chris
ExelisVIS
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Zooming in function graphics
Next Topic: how to search if a variable exists in a file

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

Current Time: Fri Oct 10 09:42:33 PDT 2025

Total time taken to generate the page: 1.04250 seconds