File: example_julia_set.rst

package info (click to toggle)
mayavi2 4.8.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 21,892 kB
  • sloc: python: 49,447; javascript: 32,885; makefile: 129; fortran: 60
file content (27 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (7)
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


.. _example_julia_set:

Julia set example
--------------------------------------------------------------------


An example showing the Julia set displayed as a z-warped surface.

The Julia set is a fractal (see http://en.wikipedia.org/wiki/Julia_set
). We display it here in a canyon-like view using mlab's surf function:
:func:`mayavi.mlab.surf`.


.. image:: ../generated_images/example_julia_set.jpg
    :align: center



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

.. literalinclude:: julia_set.py
    :lines: 8-