Jump to content

Mandelbrot set: Difference between revisions

m
→‎Mercator zooms of the Mandelbrot set using NumPy: Image slightly enlarged so that the coordinates do not overlap
m (→‎Mercator zooms of the Mandelbrot set using NumPy: Image slightly enlarged so that the coordinates do not overlap)
Line 7,174:
T[M] = k + 1
 
fig, ax = plt.subplots(figsize=(5, 14), dpi=100)
ax.imshow(T, cmap=plt.cm.twilight_shifted, vmin=0, vmax=n)
plt.savefig("Mercator_map.png", dpi=100)
 
A, B = C.real, C.imag
S = (100 * D) ** 2
 
fig, ax = plt.subplots(3, 2, figsize=(1012, 1518), dpi=100)
ax[0, 0].scatter(A[0:200], B[0:200], s=S[0:200], c=T[0:200], cmap=plt.cm.twilight_shifted, vmin=0, vmax=n)
ax[0, 1].scatter(A[100:300], B[100:300], s=S[0:200], c=T[100:300], cmap=plt.cm.twilight_shifted, vmin=0, vmax=n)
Line 7,188:
ax[2, 0].scatter(A[400:600], B[400:600], s=S[0:200], c=T[400:600], cmap=plt.cm.twilight_shifted, vmin=0, vmax=n)
ax[2, 1].scatter(A[500:700], B[500:700], s=S[0:200], c=T[500:700], cmap=plt.cm.twilight_shifted, vmin=0, vmax=n)
plt.savefig("Mandelbrot_zoom.png", dpi=100)</lang>
 
=={{header|R}}==
305

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.