From 4368eb04902f03141056bec95703cfe3fb54582d Mon Sep 17 00:00:00 2001 From: Federica Bradascio Date: Fri, 8 May 2020 00:46:13 +0200 Subject: [PATCH] Defined ax for plotting --- flarestack/core/ts_distributions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flarestack/core/ts_distributions.py b/flarestack/core/ts_distributions.py index f0764183..6fdf0260 100644 --- a/flarestack/core/ts_distributions.py +++ b/flarestack/core/ts_distributions.py @@ -389,6 +389,8 @@ def plot_background_ts_distribution(ts_array, path, ts_type="Standard", fig = plt.figure() + ax = plt.subplot(1, 1, 1) + df, loc, scale, frac_over, t_err = fit_background_ts(ts_array, ts_type) frac_under = 1 - frac_over