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

Home » Public Forums » archive » Re: 8.0 name conflict
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: 8.0 name conflict [message #72085 is a reply to message #72084] Thu, 12 August 2010 06:54 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Aug 11, 10:34 pm, wlandsman <wlands...@gmail.com> wrote:
> There is a popular procedure legend.pro in the IDL Astronomy library
> (http://idlastro.gsfc.nasa.gov/ftp/pro/plot/legend.pro) for putting
> a legend on a direct graphics plot.     IDL 8.0 has a *function*
> LEGEND() for placing a legend on a PLOT().       While there is no
> conflict between a user procedure and an *intrinsic* function with the
> same name, in this case the ITTVIS function LEGEND() is written in
> IDL.    So which ever gets compiled first prevents the other
> legend.pro from being compiled.
>
> If I put the standard IDL library at the beginning of the !PATH then I
> can't call the direct graphics LEGEND.
>
> IDL> legend
> % Compiled module: LEGEND.
> % Attempt to call undefined procedure/function: 'LEGEND'.
>
> But if I put the Astron Library ahead in the !PATH then I can't call
> LEGEND()
>
> IDL> l = legend(TARGET=[p1,p2], POSITION=[140,0.9], /DATA)
> % Compiled module: LEGEND.
> % Attempt to call undefined procedure/function: 'LEGEND'.
>
> --Wayne

Yikes, that's going to break lots of my code when I upgrade. :-( I
suppose you'll rename the astronomy library procedure? I'm going to
have a fun day of search-and-replace then...

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IVolume with Image Plane - Different opacities
Next Topic: Cylindrical Equal Area projection

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

Current Time: Sat Oct 11 14:39:43 PDT 2025

Total time taken to generate the page: 1.35884 seconds