icecube / pisa

Monte Carlo-based data analysis
http://icecube.github.io/pisa/
Apache License 2.0
19 stars 49 forks source link

Finally fix map.plot, to be actually usable.. #787

Closed LeanderFischer closed 2 months ago

LeanderFischer commented 2 months ago

Added some extra parameters to the map plotting function, which now allow:

  1. using the raw bin names (from the binning config file) as title for each pid bin, by setting pure_bin_names=True
  2. using 'layout': 'tight' or 'layout': 'constrained' in fig_kw, to produce reasonable saved figures

The second point did not work before, because the colorbar was plotted 3 times for every pid bin, and not all of them were correctly moved by the layout option.. now it is keeping track of the main axis and only plotting the colorbar once. Results are rather nice now, as you can see here:

labeled_s_to_sqrt_b_0 3_GeV_combined_U_tau4_sq_0 0100_total