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

> 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.

OK. Oddly enough, this is another manifestation
of a problem I described in a new article this
morning:

http://www.idlcoyote.com/cg_tips/wrongsym.php

In fact, I had no more than just published it when
I read your post this morning! I guess when a problem
is ready to be discovered, *everyone* discovers it at
about the same time. :-(

Anyhow, I think this is a problem with AL_LEGEND. I don't
fully understand how AL_LEGEND works (or I might offer to
take over support for the darn thing from Wayne!), but
I do notice that if modify the call to cgPlotS on lines
481-483 by changing the PSYM keyword from this "psym=p_sym"
to this "psym=psmi[i]", then things work correctly.

I think this might be the case of not fully implementing
the change to Coyote Graphics in AL_LEGEND.

Anyway, I'll discuss this with Wayne and see what, if
anything, we can do to fix it. :-)

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:14:30 PDT 2025

Total time taken to generate the page: 0.00422 seconds