Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from visual import *
- from visual.graph import *
- gdisplay(foreground=color.yellow, background=color.black, title='sin(x) and cos(x)',xtitle='X',ytitle='f(x)')
- Func = gcurve()
- Func2 = gcurve()
- for X in arange(0.0, 2.001*pi, pi/100.0):
- Func.plot(pos=(X,sin(X)))
- Func2.plot(pos=(X,cos(X)))
Add Comment
Please, Sign In to add comment