diff options
author | tlatorre <tlatorre@uchicago.edu> | 2020-05-12 15:09:43 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2020-05-12 15:09:43 -0500 |
commit | 9c6712f7335148f1090749e26020f7b468cf303b (patch) | |
tree | 648d28f719c87078fb245637cf3c6cc2e2c44731 | |
parent | 3b9f93fabebe0f4b26026f434aabc36b47bf22e2 (diff) | |
download | sddm-9c6712f7335148f1090749e26020f7b468cf303b.tar.gz sddm-9c6712f7335148f1090749e26020f7b468cf303b.tar.bz2 sddm-9c6712f7335148f1090749e26020f7b468cf303b.zip |
fix a few bugs in plot_energy.py
-rwxr-xr-x | utils/sddm/plot_energy.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/sddm/plot_energy.py b/utils/sddm/plot_energy.py index f496b0b..c9f5142 100755 --- a/utils/sddm/plot_energy.py +++ b/utils/sddm/plot_energy.py @@ -20,6 +20,7 @@ from scipy.stats import poisson from scipy.special import spence from .dc import DC_MUON, DC_JUNK, DC_CRATE_ISOTROPY, DC_QVNHIT, DC_NECK, DC_FLASHER, DC_ESUM, DC_OWL, DC_OWL_TRIGGER, DC_FTS, DC_ITC, DC_BREAKDOWN from . import grouper, print_warning, AV_RADIUS, PSUP_RADIUS +from .plot import despine import pandas as pd # Fermi constant @@ -207,7 +208,9 @@ def plot_corner_plot(ev, title, save=None): ev = ev.dropna(subset=variables) - fig = plt.figure(figsize=(FIGSIZE[0],FIGSIZE[0])) + width, height = plt.rcParams['figure.figsize'] + + fig = plt.figure(figsize=(width,width)) despine(fig,trim=True) for i in range(len(variables)): for j in range(len(variables)): |