Mandelbrot set: Difference between revisions
→Advanced: Distance estimation and Mercator zoom: abs function no longer required as B is real.
(→Advanced: Distance estimation and Mercator zoom: Explanation shortened) |
(→Advanced: Distance estimation and Mercator zoom: abs function no longer required as B is real.) |
||
Line 7,256:
===Advanced: Distance estimation and Mercator zoom===
It is possible to print the Mandelbrot set with a scatter plot. Exterior distance estimation is used, which provides a smooth transition of colors (
<lang python>import numpy as np
import matplotlib.pyplot as plt
Line 7,319:
X, Y = C.real, C.imag
S = 150 * 2 / d * np.pi
fig, ax = plt.subplots(2, 2, figsize=(16, 16))
|