from scipy import * from pylab import * import mandel # importing module created by f2py # The range of the mandelbrot plot [x0,x1,y0,y1] #ext=[-2,1,-1,1] ext=[-1.8,-1.72,-0.05,0.05] data = mandel.mandelb(ext,400,400).transpose() # Using python's pylab, we display pixels to the screen! imshow(data, interpolation='bilinear', cmap=cm.hot, origin='lower', extent=ext, aspect=1.) colorbar() show()