Ciro Santilli OurBigBook.com  Sponsor 中国独裁统治 China Dictatorship 新疆改造中心、六四事件、法轮功、郝海东、709大抓捕、2015巴拿马文件 邓家贵、低端人口、西藏骚乱
matplotlib/plotfile.py
"""
Plot data from file.

- http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.plotfile
- http://stackoverflow.com/questions/11248812/matplotlib-basic-plotting-from-text-file
- http://stackoverflow.com/questions/13545388/plot-data-from-csv-file-with-matplotlib
- http://stackoverflow.com/questions/12311767/how-to-plot-files-with-numpy
"""

import numpy as np
import os

def plot(plt, params):
    data = np.loadtxt(os.path.join(os.path.dirname(__file__), 'square.dat')).transpose()
    plt.plot(data[0], data[1])