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

Home » Public Forums » archive » position plot in iplot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
position plot in iplot [message #63095] Tue, 28 October 2008 04:42 Go to next message
AndiBiffar is currently offline  AndiBiffar
Messages: 7
Registered: October 2008
Junior Member
Hi everybody,

i want to add annotations to an iplot on the right side of the plot. I
have done the same thing with traditional plots. I first created a
window with a fixed size and afterwards positioned the plot and the
annotations via xyouts.

However using iplots i dont know what would be the replacement for
firstly initializing a window of a defined size and afterwards
positioning the iplot within it.

Thx in advance
Andi
Re: position plot in iplot [message #63145 is a reply to message #63095] Wed, 29 October 2008 04:02 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
AndiBiffar@googlemail.com writes:

> i totally agree with your opinion about itools. However since i am
> working on a GUI generating data fits i want the users using this GUI
> to be able to edit plots generated. As far as i know the only way to
> do this is using an iplot.

Well, although not the perfect solution, and a little outdated
now, MPI_PLOT still allows users to edit plot properties:

http://www.dfanning.com/programs/mpi_plot.zip

This kind of thing can be done *so* much better with the Catalyst
Library, and I have a student working on just this thing now.

> My problem is not to position of the annotations, which of course is
> way easier with your ixyouts than with the idl standard syntax using
> idAnnotate.
>
> Still my problem is the positioning of the plot. In the case of using
> plot i would generate my output in the following way
>
> window, xsize, ysize
>
> plot, ... position=3D[0.1,0.2,0.5,0.9] ....
>
> thereby i can move my plot more to the left of the window.

I sympathize with you. I really do. But what I have been able
to discover about programming iTools in over four years of trying
wouldn't take more than about 10 seconds to write down. And the
fact that questions like yours are typically met with thundering
silence from newsgroup readers suggests I'm probably not alone.

Richard Azuah, the only person I know, outside of ITTVIS, who
has ever written an iTool, has reported that he had to spend six
months of full-time effort writing a diagram of the iTool framework
before he knew enough to write a single line of code. To expend
that kind of effort, and then to *still* not be able to position
a plot in the window just breaks your heart, doesn't it? But I
would say that's about the size of what you are up against.

> Is there an object above the iplot which i could maybe generate and
> position the iplot inside afterwards.

I'm sure there is. And I wish you good luck and happy hunting.
Just be sure to take plenty of supplies. And a case of Red
Bull probably wouldn't be a bad idea. :-)

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: reading hdf files
Next Topic: Reading HDF files

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

Current Time: Fri Oct 10 13:44:17 PDT 2025

Total time taken to generate the page: 1.44064 seconds