|
|
Re: Draw IDLgrImage and IDLgrPlot in the correct order [message #61720 is a reply to message #61626] |
Fri, 25 July 2008 10:53  |
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
|
|
|