More Function Graphics Fun! [message #77592] |
Mon, 12 September 2011 08:32 |
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.")
|
|
|