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

Home » Public Forums » archive » Re: legend not working with symcat
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: legend not working with symcat [message #68526 is a reply to message #68524] Wed, 04 November 2009 15:19 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Wayne Landsman writes:

> That would be true if all users had symcat.pro in their !path.     But
> in case there are some inexperienced users who don't have the Coyote
> library installed yet, I've slightly modified your update to
> legend.pro to only call symcat.pro for non-standard PSYM values.
>
> http://idlastro.gsfc.nasa.gov/ftp/pro/plot/legend.pro

The problem now is that LEGEND won't compile *unless* you
have SYMCAT in your path. :-(

Of course, that might force users to download the Coyote Library,
a Very Good Thing, if you ask me, but...still.

I'm always in a state of confusion when I want to use a NASA or JHUAPL
routine in a Coyote Library program. What do I do? Include the routine
*with* my routines. (Don't like it, since this is a maintenance
nightmare.)
Add the routine at the front of my routine. (Well, at least I can
guarantee
it *works*.) Or, rename the routine and put it in my file. (This is
what
I usually do, along with the copyright notice, etc.)

In this case, I think calling the routine legend_symcat and sticking
it in front of legend makes sense. But then you can't draw the damn
plot with the SYMCAT symbols unless you compile legend first.
I don't know. That's why I suggested you should handle it. :-)

Cheers,

David

P.S. Why don't you write this as an object, like it should be,
and then we can just subclass off it. ;-)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ENVI + IDL
Next Topic: Plot single data points in IMAP

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

Current Time: Wed Oct 08 19:55:19 PDT 2025

Total time taken to generate the page: 0.00252 seconds