Here is an answer to a question from Joe Heafner. It is possible to plot
Visual objects in a graph, but they'll typically be distorted, as seen in
the following example.
from visual.graph import *
gd = gdisplay()
gc = gcurve()
gc.plot(pos=(0,0))
gc.plot(pos=(10,2))
sphere(display=gd.display, pos=(5,1), radius=0.5, color=color.cyan)
----- Original Message -----
From: "Joe Heafner" <hea...@vn...>
To: <bas...@un...>
Sent: Wednesday, October 23, 2002 5:20 PM
Subject: objects in graphics windows?
> Hi.
> I had this idea for a program in which the user clicks on a point on a
potential energy graph and at the position of the mouse click, an arrow is
drawn to visualize the component of force. However, it appears that objects
can't share the same window as a graph. Is this correct?
>
>
> Cheers,
> Joe Heafner - Instructional Astronomy and Physics
> Home Page http://users.vnet.net/heafnerj/index.html
> I don't have a Lexus, but I do have a Mac. Same thing.
>
>
|