This program allows you to explore the Mandelbrot set and generate interactive visualizations using Jupyter Notebook. The Mandelbrot set is a famous fractal that exhibits intricate and infinitely complex patterns.
To run this program, you need to have the following dependencies installed:
- NumPy
- Matplotlib
- ipywidgets
- IPython
You can install these dependencies using pip:
pip install numpy matplotlib ipywidgets IPython
- Open Jupyter Notebook or JupyterLab.
- Create a new notebook or open an existing one.
- Copy and paste the provided code into a code cell.
- Run the code cell to generate the interactive widget.
- Adjust the sliders and dropdowns to explore different regions and color options of the Mandelbrot set.
- The rendered image will be displayed below the interactive widget.
The provided code offers several options for customization:
- Adjust the
xmin
,xmax
,ymin
, andymax
sliders to change the range of the complex plane to explore. - Modify the
width
andheight
sliders to adjust the resolution of the generated image. - Use the
max_iter
slider to control the maximum number of iterations for computing the escape time of each point in the fractal. - Select different colors for the fractal using the
color1
tocolor5
dropdowns. - The resulting image will be displayed with the specified colormap.
Feel free to experiment with different parameter values to create unique visualizations of the Mandelbrot set.
This repository is licensed under the MIT License.