Skip to content

Commit

Permalink
Merge pull request #128 from cta-observatory/colorbar
Browse files Browse the repository at this point in the history
Add colorbar to hist plots
  • Loading branch information
Dominik Neise authored Jan 18, 2019
2 parents f15ab87 + 6253875 commit f7fd0f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eventio/scripts/plot_hists.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:])
Expand Down

0 comments on commit f7fd0f3

Please sign in to comment.