.. _opsvis_ex5:
=============================================================================
Animation of dynamic analysis and mode shapes of a 2d Portal Frame
=============================================================================
Example ``.py`` file can be downloaded :download:`here `:
If you do not see the animation running, depending on Python
environment, you will have to set a matplotlib backand which supports
animation.
For example to see the matplotlib animations in the Spyder Python
editor (which should be installed with the Anaconda platform), in the
IPython console run ``%matplotlib qt``. Then comment/uncomment one of
the two animations.
.. raw:: html
.. literalinclude:: /examples/demo_portal_frame_time_history_anim.py
:linenos: