Python command line application to generate graphs of Mandelbrot Set point orbits.
Project description
This is a command line application to generate Mandelbrot Set point orbits. An orbit is the series of values for the basic Mandelbrot Set formula: f(z) = z² + c
Please have a look at the repo on GitHub: https://github.com/josecelano/mandelbrot-orbit
Usage
Generate orbit graph for point (-1.3,0) with 100 iterations:
$ python3 -m mandelbrot_orbit -1.3 0 100 Executing mandelbrot-orbit version 1.0.0. List of argument strings: ['-1.3', '0', '100']
That command will generate an image mandelbrot_orbit.png
Flexible invocation
The application can be run right from the source directory, in different ways:
Treating the mandelbrot_orbit directory as a package and as the main script:
$ python3 -m mandelbrot_orbit zx zy num_iterations Executing mandelbrot-orbit version 1.0.0. List of argument strings: ['zx', 'zy', 'num_iterations']
Using setup.py develop (documented here):
# This installs the `mandelbrot-orbit` command linking back # to the current checkout, quite neat for development! $ python setup.py develop ... $ mandelbrot-orbit zx zy num_iterations
Using the mandelbrot-orbit-runner.py wrapper:
$ ./mandelbrot-orbit-runner.py zx zy num_iterations Executing mandelbrot-orbit version 1.0.0. List of argument strings: ['zx', 'zy', 'num_iterations']
Installation sets up bootstrap command
Situation before installation:
$ mandelbrot-orbit bash: mandelbrot-orbit: command not found
Installation right from the source tree (or via pip from PyPI):
$ python3 setup.py install
Now, the mandelbrot-orbit command is available:
$ mandelbrot-orbit -1.3 0 100 Executing mandelbrot-orbit version 1.0.0. List of argument strings: ['-1.3', '0', '100']
On Unix-like systems, the installation places a mandelbrot-orbit script into a centralized bin directory, which should be in your PATH. On Windows, mandelbrot-orbit.exe is placed into a centralized Scripts directory which should also be in your PATH.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mandelbrot_orbit-1.1.0.tar.gz.
File metadata
- Download URL: mandelbrot_orbit-1.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8da7f890520ecbe6ec14d86079196a0f3c92219ab3c8ee05d30eb19f297f33d4
|
|
| MD5 |
0cce7da25a86fa037286e6d63850edbc
|
|
| BLAKE2b-256 |
0be7c222f8a9ffa6c57af60c5f5e2db921b030a8e012983ad7370b9fd0ba1a29
|