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

Home » Public Forums » archive » Re: Why do two graphics objects in the same program appear in two different windows?
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: Why do two graphics objects in the same program appear in two different windows? [message #20335] Tue, 13 June 2000 00:00
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
kyle04@my-deja.com wrote:

> I have a widget-based application which is a 3-D model of a Roche-lobe
> filling star, and I am trying to plot an array of points in the same
> window using the plot and oplot commands, but they appear in a separate
> window.

Your description sounds like you might be trying to mix direct and object
graphics.
The PLOT and OPLOT commands are for direct graphics... which you can't use
with object graphics in the same window. When the draw widget
was created for the application, the GRAPHICS_LEVEL keyword was probably
set to 2.

> I tried defining the array as an IDLgrImage, because the star
> is defined as a IDLgrModel, but it still plots in a separate window.

If you define a new graphic atom for your scatter data, try IDLgrPOLYLINE
(or IDLgrPlot using ZVALUE), and then add it to the model, you should be
able to get what you are looking for.


Ben

--
Ben Tupper

Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org

pemaquidriver@tidewater.net
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Plot legends
Next Topic: Contour plots on xz and yz surfaces

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

Current Time: Wed Oct 08 11:35:27 PDT 2025

Total time taken to generate the page: 0.00534 seconds