|
From: Poul R. <Pou...@sk...> - 2012-10-13 10:53:29
|
Bru...@nc... writes:
>so I assume you are asking whether there is a way to permit autoscaling
>but force the scale factors to be equal.
Yes, that's what I want. I hope that someone can give me a hint on how to
do it. In the minimal example below I want the spiral to keep its shape
fixed, still autoscaling when points fall outside the actual window.
BTW, running the example results in the following error message on my
computer:
VPython WARNING: errors in shader program:
It does not seem to be fatal but I would like to know what the reason is
and how to get rid of it.
from visual import *
import visual.graph as visualgraph
from time import *
spiralgraph=visualgraph.gdisplay(title='Spiral', ytitle='x', xtitle='y',
x=0, y=0, width=800,
height=800,foreground=visualgraph.color.black,
background=visualgraph.color.white)
spiralplot =
visualgraph.gdots(color=visualgraph.crayola.blue,display=spiralgraph)
for i in range(0,3600):
t=pi*i/360
spiralplot.plot(pos=(t*cos(t),t*sin(t)))
sleep(0.001)
|