+
Skip to content

jaspaaa/mandelbrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mandelbrot Set Visualization

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.

Features

  • 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.

Requirements

  • Python 3.7 or newer
  • Libraries:
    • numpy
    • matplotlib

Installation

  1. Clone or download this repository:

    git clone https://github.com/your-username/mandelbrot-visualization.git
    cd mandelbrot-visualization
  2. Install the required Python packages:

    pip install numpy matplotlib

Usage

  1. Run the script:

    python mandelbrot.py
  2. 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.

Example Image

Figure_1

About

Creates a simple visualization of the Mandelbrot Set

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载