1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
.. _example_boy:
Boy example
--------------------------------------------------------------------
A script to generate the Mayavi logo: a Boy surface.
The boy surface is a mathematical parametric surface, see
http://en.wikipedia.org/wiki/Boy%27s_surface . We display it by sampling
the two parameters of the surface on a grid and using the mlab's mesh
function: :func:`mayavi.mlab.mesh`.
.. image:: ../generated_images/example_boy.jpg
:align: center
**Python source code:** :download:`boy.py`
.. literalinclude:: boy.py
:lines: 9-
|