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

Home » Public Forums » archive » Re: What am I doing wrong with al_legend?
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: What am I doing wrong with al_legend? [message #78726 is a reply to message #78723] Tue, 13 December 2011 10:20 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Avian writes:

> I'm trying to create a legend with al_legend, and I thought i was following all the rules, but I just can't get the symbols in the legend to come up as anything other than whatever symbol I just used to plot the last line of data with.
>
> In this example, legtxt is a 8-dimensional string array
>
> clrs=['black','red','org5','blue','grn4','orange','violet',' dodger blue']
> sym=[16,16,16,16,16,16,16,16]
> AL_legend,legtxt,psym=sym,color=clrs,pos=[65,0.5],box=0,/WIN DOW
>
> (I've also tried "colors" as the keyword instead of "color")
>
> All my symbols in the legend end up as the same color and shape as the command I last used on the plot to overplot data with. What am I missing?

Not sure. I'm certainly getting different colors in my
graphics window when I try your code. Are your Coyote
and NASA Astronomy Libraries up to date? This is the
usual (>85%) reason for difficulties. :-)

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Coyote Graphics Updates
Next Topic: idl crash with ps_end and fixps

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

Current Time: Fri Oct 10 05:04:37 PDT 2025

Total time taken to generate the page: 1.28216 seconds