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

Home » Public Forums » archive » Re: xyouts for iPlot?
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: xyouts for iPlot? [message #55636 is a reply to message #55635] Wed, 29 August 2007 08:02 Go to previous message
Kenneth Bowman is currently offline  Kenneth Bowman
Messages: 86
Registered: November 2006
Member
In article <1188352232.492045.316340@l22g2000prc.googlegroups.com>,
pdoherty <pedoherty@earthlink.net> wrote:

> One of these days I'll learn all about the iTools. So far, they don't
> seem
> all that useful. Awkward user interface, mostly. For now, I have one
> use
> for them.
>
> I'd like to make it possible for my users to use the iPlot tool for
> annotating
> and printing plots of the data we collect. I've figured out how to
> call iPlot
> when required and how to use overplot to add additional data to the
> plots.
> What I don't know how to do is to add text to the plots (not using the
> awkward user interface, but from my program) so that the plots I
> present
> my users within iPlot have the same information on them as the direct
> graphics plots they see normally. A plot title that wasn't the title
> of the
> window the plot is in, for instance. Some interesting results that
> were
> computed as text below the plot, that sort of thing.
>
> So, in as few words as possible, can someone tell me how to annotate a
> plot I've made by calling iPlot from within my program?
>
> Sorry if this is a trivial problem, but I haven't figured it out.
>
> - Peter

You need to do something like this

idAnnotate = itool_obj -> FindIdentifiers('*/ANNOTATION LAYER') ;Get annotation layer ID
oAnnotate = itool_obj -> getByIdentifier(idAnnotate) ;Get annotation object
oAnnotate -> add, OBJ_NEW('IDLitVisText', _STRING = 'This is a string', $ ;Add title in annotation plane
ALIGNMENT = 0.5, $
VERTICAL_ALIGNMENT = 1.0, $
FONT_SIZE = 24, $
LOCATION = [0.5, 0.5, 0.5])

Also, search the IDL docs for the string "onglass" for more on 3-D and
"on-the-glass text

Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ternary diagram
Next Topic: Re: Programmatic size adjustment of widgets under Windows vs. UNIX (was "Natural size of explicitly-sized widget")

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

Current Time: Sun Oct 12 10:41:09 PDT 2025

Total time taken to generate the page: 1.12489 seconds