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 #50208 is a reply to message #50207] Mon, 18 September 2006 09:57 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ingo von Borstel writes:

> 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

IDL thinks you are trying to create an octal constant,
not a string. Use single quotes here and you will be
set. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[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: Sat Oct 11 20:56:47 PDT 2025

Total time taken to generate the page: 0.72224 seconds