From: Bruce S. <Bru...@nc...> - 2010-01-09 15:23:33
|
Thanks, Lenore, for answering John's question. A further simplification is that in the plot statement there's no need to specify "gdisplay=Xvel.display" because Xvelnodrag was created for and belongs to that gdisplay. Xvel = gdisplay(x=0,y=0, width=262, height=100, background=color.white, xmin=0, xmax=12, ymin=-vmax, ymax=vmax, title = 'V_x(t)') Xvelnodrag = gdots(size=3, color=nodragcolor) ...... Xvelnodrag.plot( gdisplay=Xvel.display, pos=(t,nodrag.velocity.x) ) John, if you're comfortable with the default gdisplay and gdisplay settings the minimal structure for making a graph is something like this: Xvelnodrag = gdots() # create a gdots object for graphics ........... Xvelnodrag.plot(pos=t,nodrag.velocity.x)) # add a dot to the gdots object Bruce Sherwood |