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 #55629 is a reply to message #55622] Wed, 29 August 2007 10:53 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Aug 29, 10:36 am, David Fanning <n...@dfanning.com> wrote:
> Paul van Delst writes:
>> Holy cow.
>
> Yeah, I had exactly the same idea, but I packed a little
> more functionality into it:
>
> PRO iXYOUTS, id, theString
> theSystem = _IDLitSys_GetSystem()
> theTool = theSystem -> GetByIdentifier(id)
> idAnnotate = theTool -> FindIdentifiers('*/ANNOTATION LAYER')
> oAnnotate = theTool -> getByIdentifier(idAnnotate
> oAnnotate -> add, OBJ_NEW('IDLitVisText', _STRING = theString,
> ALIGNMENT = 0.5, $
> VERTICAL_ALIGNMENT = 1.0, $
> FONT_SIZE = 24, $
> LOCATION = [0.5, 0.5, 0.5])
> END
>
> This way it can be used with ANY iTool, as long as you
> remember to get the identifier when you call the tool.
>
> IDL> IPlot, findgen(11), Identifier=id
> IDL> iXYOUTS, id, 'This is any old string.'
>

The ID should probably be an optional keyword. Then ITGETCURRENT()
could be used to get the current iTool (i.e. same basic idea as the
current graphics window) if the ID is not provided.

Mike
--
www.michaelgalloy.com
[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: Sat Oct 11 10:36:14 PDT 2025

Total time taken to generate the page: 0.29766 seconds