I am studying Lissajous curves with the following code, that works as 
expected. 

```
import numpy as np

tmin = -30*np.pi
tmax = 30*np.pi

@interact
def _(a    = slider(np.linspace(-1,1,100),default=0.39), 
      b    = slider(np.linspace(-1,1,100),default=0.49),
      delta= slider(np.linspace(-1,1,100),default=-1),
      tt=slider(tmin,tmax,default=0,step_size=0.001,label="t"),
      trace=checkbox(default=False,label="Trace")):
    
    t=var('t')
    p=parametric_plot( (sin(a*t+delta), sin(b*t)), (t, tmin, tmax), 
                      plot_points  = 4000, 
                      aspect_ratio = 1, 
                      gridlines    = 'major',figsize=5)
    if trace:
         p += point((sin(a*tt+delta),sin(b*tt)), color="red", size=100)
    show(p)
```

[image: ksnip_20220821-131727.png]

However, I would like to have a "PLAY" button so that I can see the 
 position of the point gets updated by incrementing the value of `t` 
automatically. It would be nice to have a "PAUSE" button as well.

How can I do that? 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/c63f37e7-73e8-42d5-a904-2d3a222e84a1n%40googlegroups.com.

Reply via email to