In [4]:
from numpy import *
from pylab import *

xlim([0,1])
ylim([0,1])

x,y,z = genfromtxt('f1.dat').T
N = sqrt(x.shape[0])
x = x.reshape(N,N)
y = y.reshape(N,N)
z = z.reshape(N,N)
pcolor(x,y,z)


show()


/Users/heyfaraday/anaconda/envs/new2/lib/python2.7/site-packages/ipykernel/__main__.py:9: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
/Users/heyfaraday/anaconda/envs/new2/lib/python2.7/site-packages/ipykernel/__main__.py:10: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
/Users/heyfaraday/anaconda/envs/new2/lib/python2.7/site-packages/ipykernel/__main__.py:11: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future

In [2]:
ifft(z)


Out[2]:
array([[ -1.70864086e+00+0.j,   0.00000000e+00+0.j,   7.58798099e-16+0.j,
        ...,   0.00000000e+00+0.j,   7.58798099e-16+0.j,
          0.00000000e+00+0.j],
       [ -1.75820415e+00+0.j,   0.00000000e+00+0.j,   6.18927481e-16+0.j,
        ...,   0.00000000e+00+0.j,   6.18927481e-16+0.j,
          0.00000000e+00+0.j],
       [ -1.80669163e+00+0.j,   0.00000000e+00+0.j,   1.02105551e-15+0.j,
        ...,   0.00000000e+00+0.j,   1.02105551e-15+0.j,
          0.00000000e+00+0.j],
       ..., 
       [ -1.55380252e+00+0.j,   0.00000000e+00+0.j,   8.63701062e-16+0.j,
        ...,   0.00000000e+00+0.j,   8.63701062e-16+0.j,
          0.00000000e+00+0.j],
       [ -1.60640877e+00+0.j,   0.00000000e+00+0.j,   1.01755874e-15+0.j,
        ...,   0.00000000e+00+0.j,   1.01755874e-15+0.j,
          0.00000000e+00+0.j],
       [ -1.65803208e+00+0.j,   0.00000000e+00+0.j,   1.02804904e-15+0.j,
        ...,   0.00000000e+00+0.j,   1.02804904e-15+0.j,
          0.00000000e+00+0.j]])