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 #55634 is a reply to message #55629] Wed, 29 August 2007 09:36 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.'

> At the very, IDL should provide the same basic functionality and *ease of use* for OG as
> we have in DG.

I can see the need for some simplified object graphics
programs meshing nicely with object widgets. :-)

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
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 00:39:25 PDT 2025

Total time taken to generate the page: 0.01105 seconds