Mandelbrot set: Difference between revisions

Content added Content deleted
(→‎{{header|Python}}: Added Mercator-zooms of the Mandelbrot Set using NumPy)
m (→‎Mercator zooms of the Mandelbrot set using NumPy: Do not transpose the Mercator map.)
Line 7,174: Line 7,174:
T[M] = k + 1
T[M] = k + 1


fig, ax = plt.subplots(figsize=(14, 5), dpi=100)
fig, ax = plt.subplots(figsize=(5, 14), dpi=100)
ax.imshow(T.T, cmap=plt.cm.twilight_shifted, vmin=0, vmax=n)
ax.imshow(T, cmap=plt.cm.twilight_shifted, vmin=0, vmax=n)
plt.savefig("Mercator_map.png")
plt.savefig("Mercator_map.png")