Re: legend() with a mix of plot() and contour() [message #77983 is a reply to message #77976] |
Wed, 12 October 2011 13:39  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Brian J. Daniel writes:
> I've recently started playing with the NG system. Oddly enough, its
> been working well for me, but I've run into an odd behavior of
> legend(). I use plot() for some data, then to draw a geometrical
> function on top of it, I create coordinate arrays and use contour()
> with the c_value keyword set.
>
> The problem is when I attempt to show a legend only the calls to
> plot() are listed. Nowhere in the documentation does ITT discuss this
> limitation. Has anyone used legend for other graphing routines?
It seems to me that having colorbars and legends attached to
"targets" is a good idea in theory (as long as you don't
think about it too long), but is a disaster in practice,
for exactly the reasons you see here. They are not flexible
enough to be used in all the myriad ways people use them.
They would be much more useful if they could be detached
from targets and treated like any other graphical unit to
be added to a window. (And, it would be *extremely*
helpful if they would stay put when the window is resized!)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|