From 09e21014d1321ce2c226418f64a2c112006b6a97 Mon Sep 17 00:00:00 2001 From: ftong Date: Tue, 1 Jul 2025 11:55:34 +0200 Subject: [PATCH] Update src/seismic_hazard_forecasting.py --- src/seismic_hazard_forecasting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/seismic_hazard_forecasting.py b/src/seismic_hazard_forecasting.py index 3b9a1ee..8dce585 100644 --- a/src/seismic_hazard_forecasting.py +++ b/src/seismic_hazard_forecasting.py @@ -116,7 +116,7 @@ def calc_bins2(dates, unit, bin_dur, dates_calc, rate_forecast, rate_unc_high, r rt, idx, u_e = av_rates(act_rate, pprs) # --------------------- Line Plot ------------------------- - fig, ax = plt.subplots(dpi= 1000, figsize=(14, 5)) + fig, ax = plt.subplots(figsize=(14, 5)) # Plot activiry rate for all catalog ax.plot(bin_edges_dt[1:len(bin_edges)], act_rate, '-o', linewidth=2, markersize=6) @@ -177,7 +177,7 @@ def calc_bins2(dates, unit, bin_dur, dates_calc, rate_forecast, rate_unc_high, r [rt[i]] * (int(u_e[idx[i]]) - int(u_e[idx[i - 1]])), linewidth=2) plt.legend(loc='best') - plt.savefig(filename, dpi=600) + plt.savefig(filename) plt.show() return act_rate, bin_counts, bin_edges, out, pprs, rt, idx, u_e