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 #78720 is a reply to message #78719] Tue, 13 December 2011 11:43 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Avian writes:

> Thanks - the last command I have before the al_legend command is this:
>
> cgplot,x,y+0.3,psym=13,SYMSIZE=0.7,color='blk5',/OVERPLOT,/A DDCMD,/WINDOW
>
> Do you think you could try an overplot like this before you call al_legend?

Well, that does change things, although I can't for the
life of me think why. :-(

If you do the overplot *after* the legend, things
work OK:

cgplot, cgdemodata(1), /window, yrange=[-100,100]
clrs=['black','red','org5','blue','grn4',$
'orange','violet','dodger blue']
sym=[16,16,16,16,16,16,16,16]
legtxt = StrTrim(Indgen(8)+1)
AL_legend,legtxt,psym=sym,color=clrs,$
pos=[65,0.5],box=0,/WINDOW
cgplot,cgdemodata(1)/2,psym=13,SYMSIZE=0.7, $
color='blk5',/OVERPLOT,/ADDCMD
END

I'll have to look into this. I'll get back to you.

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: Wed Oct 08 19:13:44 PDT 2025

Total time taken to generate the page: 0.00414 seconds