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

Home » Public Forums » archive » Help needed in using object graphics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Help needed in using object graphics [message #93314] Mon, 13 June 2016 22:53 Go to previous message
huangsu is currently offline  huangsu
Messages: 10
Registered: November 2014
Junior Member
I encountered a problem using IDL object graphics. The source code is listed below. The program drawing a plot using IDLgrPlot using an object window IDLgrWindow. The plot displayed then disappeared immediately. I have to put a WAIT statement to confirm the plot is painted. Once the WAIT is finished, the plot disappeared. Can some one help me identify the problem?

PRO PLOTTEST
x = FINDGEN(20)-10
y = SIN(x)*10

base = WIDGET_BASE(/ROW, TITLE= 'TEST', XSIZE=800, YSIZE=600)
draw1 = WIDGET_WINDOW(base, XSIZE=800, YSIZE=600, GRAPHICS_LEVEL=2)
WIDGET_CONTROL, base, /REALIZE
WIDGET_CONTROL, draw1, GET_VALUE=owindow1
view1 = OBJ_NEW('IDLgrView', VIEWPLANE_RECT=[-15,-15,30,30])
model1 = OBJ_NEW('IDLgrModel')
plot1 = OBJ_NEW('IDLgrPlot', x, y, COLOR=[255, 0, 0])
model1->ADD, plot1
view1->ADD, model1
owindow1->DRAW, view1
WAIT, 3
END

Platform: IDL 8.4.1, Linux Debian

Thanks for any reply.

Regards,
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Multi plots conditions
Next Topic: conbining arrays

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

Current Time: Wed Oct 08 13:38:22 PDT 2025

Total time taken to generate the page: 0.00462 seconds