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

Home » Public Forums » archive » Re: Where's the syntax error? No stringst that only contain numbers?
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: Where's the syntax error? No stringst that only contain numbers? [message #50207 is a reply to message #50193] Mon, 18 September 2006 10:02 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
try plot, x,y,xtitle='1',ytitle='2' (single quote)

Jean

Ingo von Borstel wrote:
> Hello,
>
> when calling the plot routine, I found that I cannot use all kind of
> strings as title strings:
> Quote:

> IDL> x = [1,2,3,4,5,6]
> IDL> y = [1,2,3,4,7,8]
> IDL> plot, x,y,xtitle="x",ytitle="y"
> IDL> plot, x,y,xtitle="1",ytitle="2"
>
> plot, x,y,xtitle="1",ytitle="2"
> ^
> % Syntax error.
> IDL>
>

> I get no syntax error in the first case and one in the second. I don't
> really see why. Especially as the examples are to my eyes exactly alike.
> Are strings, that contain only figures not allowed?
> I'm using IDL 6.1
>
> Regards,
> Ingo
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A new puzzle for histogram
Next Topic: spawn and 'ls *.out'

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

Current Time: Sun Oct 12 09:25:01 PDT 2025

Total time taken to generate the page: 1.04083 seconds