Re: number keyword in legend [message #78669 is a reply to message #78668] |
Fri, 16 December 2011 09:01   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
simona bellavista writes:
> Ok, it is more than possible that I did some mistakes. But look, I
> tried the function in the interactive shell
> (I work on linux, just to specify, and again in IDL v7.0)
>
> IDL> window, 0, retain=2
> IDL> plot, dindgen(100)
> IDL> al_legend,['Plus sign','Asterisk','Period'],psym=[1,2,3]
> % Compiled module: AL_LEGEND.
> % Compiled module: SETDEFAULTVALUE.
> % Compiled module: CGPLOTS.
> % Compiled module: SETDECOMPOSEDSTATE.
> % Compiled module: DECOMPOSEDCOLOR.
> % Compiled module: CGCOLOR.
> % Compiled module: STRSPLIT.
> % Compiled module: CGSNAPSHOT.
> % Compiled module: SYMCAT.
> % Compiled module: CGTEXT.
> % Compiled module: CGDEFCHARSIZE.
> % Compiled module: STR_SIZE.
> % Compiled module: ERROR_MESSAGE.
>
> Traceback Report from CGTEXT:
>
> % Keyword ADDCMD not allowed in call to: XYOUTS
> % Execution halted at: CGTEXT 258 /mypath/idl/coyote/
> cgtext.pro
> % AL_LEGEND 492 /mypath/idl/Default/
> al_legend.pro
> % $MAIN$
> % Variable is undefined: WIDTH.
> % Error occurred at: AL_LEGEND 494
> /mypath/idl/Default/al_legend.pro
> % $MAIN$
> % Execution halted at: $MAIN$
Well, I don't know. I'm running in IDL 7, too.
IDL> plot, dindgen(100)
IDL> al_legend,['Plus sign','Asterisk','Period'],psym=[1,2,3]
IDL> print, !version
{ x86_64 Win32 Windows Microsoft Windows 7.1.2 Oct 28 2009 64 64}
Works fine here. Did you download the latest this morning?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|