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

Home » Public Forums » archive » Re: Draw IDLgrImage and IDLgrPlot in the correct order
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
Re: Draw IDLgrImage and IDLgrPlot in the correct order [message #61626] Fri, 25 July 2008 09:39 Go to next message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Yes, sure !
Re: Draw IDLgrImage and IDLgrPlot in the correct order [message #61648 is a reply to message #61626] Fri, 25 July 2008 05:51 Go to previous messageGo to next message
humanumbrella is currently offline  humanumbrella
Messages: 52
Registered: June 2008
Member
On Jul 24, 5:41 pm, bernat <bernat.puigdomen...@gmail.com> wrote:
> Hi group,
>
> I drew an IDLgrImage and an IDLgrPlot in this order. Always, when I
> draw the Window, the Image is drawn on the plot. I dont know what to
> do to draw the plot on the image and not viceversa.
>
> Can anybody help me?
>
> Thanks,
>
> Bernat

Are you adding them to IDLgrView?

--Justin
Re: Draw IDLgrImage and IDLgrPlot in the correct order [message #61720 is a reply to message #61626] Fri, 25 July 2008 10:53 Go to previous message
humanumbrella is currently offline  humanumbrella
Messages: 52
Registered: June 2008
Member
On Jul 25, 12:39 pm, bernat <bernat.puigdomen...@gmail.com> wrote:
> Yes, sure !

Unfortunately I would like to help, but I think I need a piece of code
or something to work with.

Do you have this ?

It works for me by default, as long as I add them one after the other:

oView = OBJ_NEW('IDLgrView', $
VIEWPLANE_RECT=[0,0,80, 100])
oModel = OBJ_NEW('IDLgrModel')
oView->Add, oModel

head = READ_BINARY( FILEPATH('head.dat', $
SUBDIRECTORY=['examples','data']), $
DATA_DIMS=[80,100, 57])

oModel->Add, OBJ_NEW('IDLgrImage', head[*,*,0], /INTERP)
y = FIndGen(200)
y = Sin(y/2) / Exp(y/1000)
x = IndGen(N_Elements(y))

plot = OBJ_NEW('IDLgrPlot',x,y,color=[255,255,255])
oModel->Add,plot
oWin = OBJ_NEW('IDLitWindow', DIMENSIONS=[300,300], $
TITLE="Test")
oWin->Add, oView
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Project newbie asks...well what about ENVI projects?
Next Topic: Draw IDLgrImage and IDLgrPlot in the correct order

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

Current Time: Fri Oct 10 16:52:54 PDT 2025

Total time taken to generate the page: 0.09926 seconds