This Python project visualizes the Mandelbrot set, a famous fractal representing the set of complex numbers for which a particular mathematical sequence does not diverge. The program generates and displays an image of the Mandelbrot set using NumPy
and Matplotlib
.
- Generates a Mandelbrot set image with customizable resolution and bounds.
- Displays the Mandelbrot set in an interactive plot with a color-coded iteration count.
- Allows you to explore and experiment with different parameters, zoom levels, and resolutions.
- The mandelbrot_dynamic.py script allows you to visualize the Mandelbrot set dynamically with an animation.
- Python 3.7 or newer
- Libraries:
numpy
matplotlib
-
Clone or download this repository:
git clone https://github.com/your-username/mandelbrot-visualization.git cd mandelbrot-visualization
-
Install the required Python packages:
pip install numpy matplotlib
-
Run the script:
python mandelbrot.py
-
Adjust parameters in the script, such as:
- width and height: Resolution of the generated image.
- x_min, x_max, y_min, y_max: Bounds of the complex plane to explore.
- max_iter: Maximum iterations to determine divergence.