Skip to content

Commit

Permalink
show LogNorm params for each peak
Browse files Browse the repository at this point in the history
  • Loading branch information
ibressler committed Jun 11, 2021
1 parent 6beadf3 commit 64b60e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions distrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ def plotPeak(self, peakRange, moments, distrPar, showFullRange=False, ax=None):
lbl.append(fmt.format("median:", dp[-1], max(abs(dp[-1]-dpLo[-1]), abs(dpHi[-1]-dp[-1]))))
else:
lbl.append(fmt.format(k+':', mom[k], max(abs(mom[k]-momLo[k]), abs(momHi[k]-mom[k]))))
lbl.append("LogNorm: "+distrParToText(dp)[0])
ax.bar(x, y, width=self.getBarWidth(x), color=self.color, alpha=0.5, label="\n".join(lbl))
ax.fill_between(x, np.maximum(0, y-u), y+u,
color='red', lw=0, alpha=0.1,
Expand Down

0 comments on commit 64b60e7

Please sign in to comment.