.. _lab15: Lab 15: Tuesday May 20, 2014 ============================= Install JSAnimation: See :ref:`animation`. Demos ----- * `$UWHPSC/labs/lab15/JSAnimation_demo.ipynb` View at ``_ * `$UWHPSC/labs/lab15/WavePacket.ipynb` View at ``_ * `$UWHPSC/labs/lab15/WavePacket.py` Script version * `$UWHPSC/labs/lab15/Towers_of_Hanoi_animation.ipynb` View at ``_ Note: These use `$UWHPSC/labs/lab15/JSAnimation_frametools.py`. Problem to solve ---------------- Create an animation similar to ``_. Hints: * The following matplotlib commands may be useful:: fill(x,y,'b') # fill polygon specified by arrays x and y with blue axis('scaled') # scale x and y axes the same way * Recall that to rotate a point $(x,y)$ through angle $\theta$ you can can compute :math:`\hat x = \cos(\theta)x + \sin(\theta)y` :math:`\hat y = -\sin(\theta)x + \cos(\theta)y` **There is no quiz for Lab 15**