numpy plot

카테고리 없음 2013. 7. 13. 15:42 Posted by mathboy

>>> import numpy as np

>>> import matplotlib.pyplot as plt

>>> import matplotlib.mlab as mlab

>>> import matplotlib.cbook as cbook

>>> import matplotlib.ticker as ticker

>>> a=np.loadtxt('indegree.csv')

>>> fig=plt.figure()

>>> ax=fig.add_subplot(111)

>>> ax.plot(np.arange(len(a)),a)

[<matplotlib.lines.Line2D object at 0x1771c290>]

>>> plt.show()