Fitting a histogram with python
Here you have an example working on py2.6 and py3.2: from scipy.stats import norm import matplotlib.mlab as mlab import matplotlib.pyplot as plt # read data from a text file. One number per line arch = “test/Log(2)_ACRatio.txt” datos = [] for item in open(arch,’r’): item = item.strip() if item != ”: try: datos.append(float(item)) except ValueError: pass … Read more