Adding an annotation to an iTool programmatically [message #44234] |
Wed, 25 May 2005 12:37 |
Benjamin Hornberger
Messages: 258 Registered: March 2004
|
Senior Member |
|
|
Hi all,
the question below was posted by Mark Rivers on Nov 5, 2003, with no
replies. I also want to add a plot title programmatically, so can
anybody help by now? I am also backing the request for a keyword to add
a title!
Thanks,
Benjamin
"This post is along the lines of some previous ones, but maybe there's
more collective information now?
I have created an iplot display with multiple data sets:
IDL> iplot, findgen(100), name='Plot A'
IDL> iplot, -findgen(100), /overplot, name='Plot B'
I can now interactively select both plots, and then do Insert/Legend,
and I get a nice legend.
However, I don't want to do it interactively, I want to do it from my
IDL code.
Anybody have any examples of how to do that? Similarly I want to add
a "plot title" (like the "title" keyword in direct graphics). Any
ideas? I know these things can be done, but the documentation for
this kind of operation does not exist, and there's a lot of code to
wade through to figure out how to do it.
BTW I think having the equivalent of the direct graphics "title"
keyword for iplot and iimage would be very useful, as would having a
way to display a legend from the iplot command.
Mark"
|
|
|