as
animation
from
matplotlib.patches
import
,
(
,
)
=
(
ncols
=
2
,
sharey
=
True
,
figsize
=
(
6
,
2
),
gridspec_kw
=
dict
(
width_ratios
=
[
1
,
3
],
wspace
=
0
),
)
(
1
)
(
1
/
3
)
(
False
)
([
0
,
,
2
*
],
[
"0"
,
r
"$\pi$"
,
r
"$2\pi$"
])
=
(
0
,
2
*
,
50
)
(
(
),
(
),
"k"
,
lw
=
0.3
)
,
=
(
0
,
0
,
"o"
)
,
=
(
,
(
))
=
(
(
1
,
0
),
(
0
,
0
),
"data"
,
"data"
,
axesA
=
,
axesB
=
,
color
=
"C0"
,
ls
=
"dotted"
,
)
(
)
def
animate
(
i
):
=
(
0
,
i
,
int
(
i
*
25
/
))
(
,
(
))
,
y
=
(
i
),
(
i
)
([
],
[
y
])
=
,
y
=
i
,
y
return
,
,
=
(
,
animate
,
interval
=
50
,
blit
=
False
,
frames
=
,
repeat_delay
=
100
,
)
()
Total running time of the script: (0 minutes 8.429 seconds)