Numpy doesn't support plotting by itself. You usually would use matplotlib
for plotting numpy arrays.
If you just want to "look into the file", I think the easiest way would be to use plotfile
.
import matplotlib.pyplot as plt
plt.plotfile('data.dat', delimiter=' ', cols=(0, 1),
names=('col1', 'col2'), marker='o')
plt.show()
You can use this function almost like gnuplot
from within ipython:
$ ipython --pylab
...
...
In [1]: plt.plotfile('data.dat', delimiter=' ', cols=(0, 1),
... names=('col1', 'col2'), marker='o')
or put it in a shell script and pass the arguments to it to use it directly from your shell
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…