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

Home » Public Forums » archive » Re: More Function Graphics Fun!
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: More Function Graphics Fun! [message #77590 is a reply to message #77587] Mon, 12 September 2011 08:45 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> OK, having solved the contour plot problem, I am ready
> for the *next* essay question on the exam. :-)
>
> I am interested in legends. I am using this code
> as a test example:
>
> p1 = Plot(Findgen(20)+1, Name='Line 1')
> p2 = Plot(Findgen(20)*2+1, Name='Line 2', LineStyle=2, /Overplot)
> leg = Legend(Position=[3,30], /Data)
>
> It works great. Well, it's OK. The legend appears
> reasonable close to where I want it to appear at
> [3,30] in data coordinates. At least it does until
> I resize the window. Then only God knows where it
> might show up!
>
> Does anyone know how I might keep the legend in
> the same location as I resize the graphics window?

Now that I think about it, maybe this is the same
bug that causes the legend to completely disappear
on log plots. Is that possible?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: More Function Graphics Fun!
Next Topic: Just for fun

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

Current Time: Wed Oct 08 17:52:31 PDT 2025

Total time taken to generate the page: 0.00565 seconds