Skip to content

Instantly share code, notes, and snippets.

View schmidtdominik's full-sized avatar
🐙

Dominik Schmidt schmidtdominik

🐙
  • London, UK
View GitHub Profile
@schmidtdominik
schmidtdominik / mandelbrot-5-loc.py
Last active February 20, 2020 00:52
mandelbrot-5-loc
import numpy as np
from matplotlib import pyplot as plt
# readable version (see comments for 5-line version)
size = 1000
# create complex coordinate grid
x = np.linspace(-1.7, 1, size*2.7)
y = np.linspace(-1.2, 1.2, size*2.4)
xv, yv = np.meshgrid(x, y)