예제 #1
0
def cdf_plot_file(ax,filename,*vargs,**kwargs):
    data = np.load(filename)
    (x,F) = cdf_points(data)
    ax.plot(x,F,*vargs,**kwargs)
예제 #2
0
import sys
import numpy as np
import matplotlib.pyplot as plt
from utils import cdf_points


if __name__ == '__main__':
    files = sys.argv[1:]
    for filename in files:
        data = np.load(filename)
        (x,F) = cdf_points(data)
        plt.plot(x,F)
plt.legend(files,loc='best')
plt.show()