| Re: xyouts for iPlot? [message #55614 is a reply to message #55605] |
Thu, 30 August 2007 07:00   |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Kenneth Bowman wrote:
> In article <fb46j0$l8r$1@news.nems.noaa.gov>,
> Paul van Delst <Paul.vanDelst@noaa.gov> wrote:
>
>> Holy cow.
>
> Hey, I didn't *write* the iTools. Someone gave me this snippet
> (Mike Galloy?) and I'm just passing it along. :-)
Oh, I know. I wasn't expressing my incredulity at you for suggesting it, but that it is
even necessary.
I have always thought (even when DG was the only game in town) that IDL should provide
some value-added tools that were simply layers over the standard commands. E.g. back in
'96, I wrote my own plotting tool that allows me to interactively zoom. That project was
(still is) a complete hack but I use that tool nearly every single day. Easy to use and
waaaay faster than iplot. And people's eyebrows still arch when they see it in use
(although that probably says more about the lack of other-than-Fortran language fluency
where I work!).
I write enough code in Fortran95 that simply moves data around, reformats it, etc. I don't
want to have to do the same sort of thing in IDL just so I can look at said data.
It seems to me that need for these "extra layer" tools has increased with the advent of
iTools. An easy solution (from my perspective) is for ITTVIS to send a big, fat cheque to
David Fanning so that he can address the issue. (If that doesn't get me an honorary invite
to the next IEPA meeting, I don't know what will :o)
> My iTools programs are *filled* with stuff like this. I don't
> do it because I like it, I do it because it is necessary to
> get the kind of interactive 3-D graphics that I need.
I understand.
> If you want to see an example of some of the cool things that
> can be be done with iTools, download this binary file:
>
> http://csrp.tamu.edu/hiaper/archive/502rf01_o3_pv.isv
>
> Start an iTool (e.g., iPlot). Use the File menu to open the
> .isv file. Click on the graphic to select it. You can then
> rotate the graphic smoothly in real time.
I have used iTools and I know they can do amazing things (I've even posted to that effect
here). Maybe I've just become a curmudgeonly old fart, but when I get back from vacation,
I find it much easier to remember,
PLOT, x, y
XYOUTS, 0.5, 0.5, "Hello", /norm
than
iPLOT, x, y
idAnnotate = itool_obj -> FindIdentifiers('*/ANNOTATION LAYER')
oAnnotate = itool_obj -> getByIdentifier(idAnnotate)
oAnnotate -> add, OBJ_NEW('IDLitVisText', _STRING = 'Hello', $
ALIGNMENT = 0.5, $
VERTICAL_ALIGNMENT = 1.0, $
FONT_SIZE = 24, $
LOCATION = [0.5, 0.5, 0.5])
cheers,
paulv
|
|
|
|