

.. _example_subclassing_mayavi_application:

Subclassing mayavi application example
--------------------------------------------


This script demonstrates how one can script Mayavi by subclassing the
application, create a new VTK scene and create a few simple modules. 

This should be run as::

   $ python test.py



**Source code:** :download:`subclassing_mayavi_application.py`

.. literalinclude:: subclassing_mayavi_application.py
    :lines: 11-


    