From bdbbeb5e32fae486751befafa08baa4bd35403a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20N=C3=B6the?= Date: Thu, 10 Jan 2019 13:46:38 +0100 Subject: [PATCH] Add colorbar to hist plots --- eventio/scripts/plot_hists.py | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/eventio/scripts/plot_hists.py b/eventio/scripts/plot_hists.py index 2c9e7f24..1ccbe0fe 100644 --- a/eventio/scripts/plot_hists.py +++ b/eventio/scripts/plot_hists.py @@ -55,6 +55,7 @@ def main(): non_zero_y, = np.where(marginal_y != 0) plt.ylim(y_bins[non_zero_y[0]], y_bins[non_zero_y[-1] + 1]) + plt.colorbar(label='Number of Events') else: centers = 0.5 * (x_bins[:-1] + x_bins[1:]) diff --git a/setup.py b/setup.py index c7a8c1e8..d8226c12 100644 --- a/setup.py +++ b/setup.py @@ -50,7 +50,7 @@ def finalize_options(self): setup( name='eventio', - version='0.12.0', + version='0.13.0', description='Python read-only implementation of the EventIO file format', long_description=long_description, url='https://github.com/fact-project/pyeventio',