Skip to content

Commit

Permalink
prevent summary from clearing histogram fixing #33
Browse files Browse the repository at this point in the history
  • Loading branch information
cokelaer committed Sep 2, 2021
1 parent 16e57a3 commit 35d8200
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fitter/fitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,11 @@ def get_best(self, method="sumsquare_error"):
param_dict[d_key] = d_val
return {name: param_dict}

def summary(self, Nbest=5, lw=2, plot=True, method="sumsquare_error"):
def summary(self, Nbest=5, lw=2, plot=True, method="sumsquare_error", clf=True):
"""Plots the distribution of the data and Nbest distribution"""
if plot:
pylab.clf()
if clf:
pylab.clf()
self.hist()
self.plot_pdf(Nbest=Nbest, lw=lw, method=method)
pylab.grid(True)
Expand Down

0 comments on commit 35d8200

Please sign in to comment.