Mandelbrot set: Difference between revisions

Content added Content deleted
Line 8,935: Line 8,935:
T[N] = np.maximum((U.real * v.real + U.imag * v.imag + height) / (1 + height), 0)
T[N] = np.maximum((U.real * v.real + U.imag * v.imag + height) / (1 + height), 0)


plt.imshow(T ** 1.0, cmap=plt.cm.gray, origin="lower")
plt.imshow(T ** 1.0, cmap=plt.cm.bone, origin="lower")
plt.savefig("Mandelbrot_normal_map_1.png", dpi=200)
plt.savefig("Mandelbrot_normal_map_1.png", dpi=200)


Line 8,944: Line 8,944:
T[N] = np.maximum((U.real * v.real + U.imag * v.imag + height) / (1 + height), 0)
T[N] = np.maximum((U.real * v.real + U.imag * v.imag + height) / (1 + height), 0)


plt.imshow(T ** 1.0, cmap=plt.cm.gray, origin="lower")
plt.imshow(T ** 1.0, cmap=plt.cm.afmhot, origin="lower")
plt.savefig("Mandelbrot_normal_map_2.png", dpi=200)</syntaxhighlight>
plt.savefig("Mandelbrot_normal_map_2.png", dpi=200)</syntaxhighlight>