

.. _example_nongui:

Nongui example
--------------------------------------------


This script demonstrates how one can use the Mayavi application framework
without displaying Mayavi's UI.

Note: look at the end of this file to see how the non gui plugin is
chosen instead of the default gui mayavi plugin.

This should be run as::

  $ python nongui.py

Or::

  $ mayavi2 script.py



**Python source code:** :download:`nongui.py`

.. literalinclude:: nongui.py
    :lines: 18-


    