Coder Social home page Coder Social logo

slyx737 / mandelbrotset Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 42.86 MB

Visualize the beauty of the Mandelbrot set with this Python script. Generate and display Mandelbrot fractals with customizable image size, bounds, and iteration count.

Home Page: https://replit.com/@Slyx737/Mandelbrot-Set

Python 100.00%

mandelbrotset's Introduction

Mandelbrot Fractal Visualizer

Visualize the beauty and complexity of the Mandelbrot set with this Python script. The Mandelbrot set is a mathematical set of points in the complex plane that exhibits fractal properties. This script allows you to generate and display Mandelbrot fractals with customizable image size, bounds, and iteration count.

Features

  • Generate Mandelbrot fractals with a specified image size (width and height).
  • Customize the bounds of the complex plane (x_min, x_max, y_min, y_max) to zoom in and explore different regions of the Mandelbrot set.
  • Adjust the maximum number of iterations to control the level of detail in the fractal image.
  • Display the generated Mandelbrot image with a color map of your choice.

Usage

  1. Set the desired image size, bounds, and maximum number of iterations in the script.
  2. Run the script to generate and display the Mandelbrot fractal image.
# Image size and bounds
width, height = 800, 800
x_min, x_max = -2, 2
y_min, y_max = -2, 2
max_iter = 256

# Generate Mandelbrot image
x, y, mandelbrot_image = create_mandelbrot_image(width, height, x_min, x_max, y_min, y_max, max_iter)

# Display the image
plt.imshow(mandelbrot_image.T, extent=(x_min, x_max, y_min, y_max), cmap='hot')
plt.colorbar()
plt.show()

# Dependencies
NumPy
Matplotlib

# License
This project is open source and available under the MIT License.

# Contact
If you have any questions or suggestions, please feel free to reach out or open an issue on GitHub.

mandelbrotset's People

Contributors

slyx737 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.