Mandelbrot set: Difference between revisions
m
→Mercator zooms of the Mandelbrot set using NumPy: a few more simplifications
(→Mercator zooms of the Mandelbrot set using NumPy: Fixed sign error and shortened filenames) |
m (→Mercator zooms of the Mandelbrot set using NumPy: a few more simplifications) |
||
Line 7,155:
x = np.linspace(0, 2, d, endpoint=False)
y = np.linspace(0, 2
U, V = np.meshgrid(x
W = (U - 1) + (V - h / d) * 1j
C = (-0.
A, B = C.real, C.imag
Line 7,175:
plt.savefig("Mandelbrot_set.png", dpi=100)
D = 2 / d
S = (150 * D) ** 2 # factor depends on the size of the figure
Line 7,189:
x = np.linspace(0, 2 * np.pi, d, endpoint=False)
y = np.linspace(0, 2 * np.pi
U, V = np.meshgrid(x,
W = np.exp(U * 1j
C = (-0.41031 + 0.61021 * 1j) + 1.0 * W
A, B = C.real, C.imag
|