Skip to content

Commit

Permalink
Plots: Fix plotting peak max photon rate with NaNs
Browse files Browse the repository at this point in the history
  • Loading branch information
tritemio committed May 1, 2017
1 parent 1e7bd7d commit 1e1b6c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fretbursts/burst_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,8 @@ def _bins_array(bins):

def _hist_burst_taildist(data, bins, pdf, weights=None, yscale='log',
color=None, label=None, plot_style=None):
hist = HistData(*np.histogram(data, bins=_bins_array(bins),
weights=weights))
hist = HistData(*np.histogram(data[~np.isnan(data)],
bins=_bins_array(bins), weights=weights))
ydata = hist.pdf if pdf else hist.counts

default_plot_style = dict(marker='o')
Expand Down

0 comments on commit 1e1b6c5

Please sign in to comment.