Skip to content

This Python CLI tool generates visual approximations of the Mandelbrot and Julia sets, with customizable options for resolution, iteration depth, and output format. Developed as a university project, this package serves as hands-on training in building, documenting, and deploying a Python package with CLI functionality.

Notifications You must be signed in to change notification settings

54CHA-PJ/ECN-PPY-Mandelbrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programmation Avancée en Python - TP Final

Informations Générales

  • ssurez vous que vous vous places dans le dossier racine du projet avant d'effectuer ces commandes.

  • Le code source se trouve sous le dossier tpf

  • Le coeur du code source se trouve sous le fichier mandelbrot.py

1. Installation

pip install .

2. Documentation

Documentation HTML (En anglais) disponible sous le format HTML dans le fichier (ouvrez sur un navigateur):

./tpf/doc/build/html/index.html

Doc HTML

3. Exemples de plots genérés

Exemple 1

plot_mandelbrot()
MandelbrotPlot -o "mandelbrot.png"

Exemple 2

     plot_mandelbrot(
         zmin=-0.7440+0.1305j,
         zmax=-0.7425+0.1320j,
         pixel_size=5e-7,
         max_iter=200,
         figname="Mandelbrot_tentacle.png"
     )

Exemple 3

Prend quelques minutes

plot_julia(
    c=-0.8 + 0.156j,
    zmin=-2-1j,
    zmax=2+1j,
    pixel_size=5e-4,
    max_iter=100,
    figname="Julia_-0.8+0.156j.png"
)
JuliaPlot -o "julia.png"

Exemple 4

JuliaPlot -c="-0.8j" --pixel_size=5e-2 --max-iter=50 -o "thunder-julia.png"

4. Generation de la documentation

conda activate ENV_NAME
conda install sphinx sphinxcontrib-napoleon
cd tpf
cd doc
make html
  • Versions:
    • python >= 3.6
    • numpy >= 1.17.*
    • matplotlib >= 3.*

About

This Python CLI tool generates visual approximations of the Mandelbrot and Julia sets, with customizable options for resolution, iteration depth, and output format. Developed as a university project, this package serves as hands-on training in building, documenting, and deploying a Python package with CLI functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published