var('t')
r=(cos(t), sin(t))
tbounds=(0, 2*pi)
tmin,tmax=tbounds
@interact
def myplot(tt=slider(tmin.n(), tmax.n(),default=((tmin+tmax)/2).n())):
p=parametric_plot(r, (t, tmin, tmax),alpha=0.5)
background=parametric_plot(r, (t, tmin, tt),thickness=3)
show(p+background)
|
|
Click to the left again to hide and once more to show the dynamic interactive window
|