In [1]:
import matplotlib.pyplot as plt
from numpy import meshgrid, arange, shape, sin, cos

In [2]:
%matplotlib inline

In [22]:
x, y = meshgrid(arange(-100,100),arange(-100,100))

In [33]:
data = sin((x/5.0)**2+(y/5.0)**2)

In [34]:
plt.figure(figsize = (20,20))
plt.imshow(data,cmap='gray')


Out[34]:
<matplotlib.image.AxesImage at 0x10a206f10>

In [ ]: