public
Created

  • Download Gist
show.py
Python
1 2 3 4 5 6 7 8 9 10 11 12
from numpy import loadtxt
import matplotlib.pyplot as plt
 
fractal = loadtxt("fractal.dat")
x_min, x_max, y_min, y_max = loadtxt("coord.dat")
 
plt.imshow(fractal, cmap=plt.cm.hot,
extent=(x_min, x_max, y_min, y_max))
plt.title('Mandelbrot Set')
plt.xlabel('Re(z)')
plt.ylabel('Im(z)')
plt.savefig("mandelbrot.png")

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.