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

Home » Public Forums » archive » More Function Graphics Fun!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
More Function Graphics Fun! [message #77592] Mon, 12 September 2011 08:32
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

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?

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Is IDL 8.1 Useable!?
Next Topic: Re: More Function Graphics Fun!

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

Current Time: Wed Oct 08 17:45:03 PDT 2025

Total time taken to generate the page: 0.00721 seconds