Skip to content

Instantly share code, notes, and snippets.

@certik
Created January 22, 2012 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save certik/1655377 to your computer and use it in GitHub Desktop.
Save certik/1655377 to your computer and use it in GitHub Desktop.
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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment