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

Home » Public Forums » archive » Re: Title in 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: Title in iPlot [message #50868 is a reply to message #50861] Thu, 19 October 2006 17:39 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Benjamin Hornberger writes:

> For the lazy among us, could you post some example code? I quickly tried
> to get an annotation into the visualization layer interactively and
> couldn't manage to do that. Does that only work programmatically? I was
> also annoyed by the fact that the title doesn't resize along with the plot.

Is it YOU sending me those e-mails under an assumed
name, Benjamin?

Here is the code I used. Almost verbatim from
the aforementioned Tech Tip:

tool = itGetCurrent(tool=oTool)
;get an object descriptor for the text annotation class:
oDesc = oTool->GetAnnotation('Text')
;initialize an object reference for a new text annotation:
oText = oDesc->GetObjectInstance()
;set the properties on the text annotation object:
oText->SetProperty, _STRING=title_text, _HORIZONTAL_ALIGN=1, $
LOCATIONS=[6,330,0.99]
;add the text object to the annotation layer:
oTool->Add, oText, LAYER='VISUALIZATION LAYER'

The LOCATIONS obviously are in your data coordinate system
units.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Image and ROI Help
Next Topic: Re: Missing data and MPFITFUN

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

Current Time: Wed Oct 08 16:04:37 PDT 2025

Total time taken to generate the page: 0.00459 seconds