Skip to content

PMT array plot, fixes and upgrades for mini analyses

Luca Scotto Lavina requested to merge mini_analysis_fixes into master

Created by: JelleAalbers

This:

  • Adds straxen.plot_on_pmt_arrays, to display some quantity on the PMT array grid. You can see an example below. There is also a more low-level function straxen.plot_on_single_pmt_array.
straxen.plot_on_pmt_arrays(np.random.rand(248), 
                           label='Random number', vmin=0, vmax=1)

plt.savefig('pmt_array_test.png', dpi=100, bbox_inches='tight')

pmt_array_test

  • Add docstrings to several of the quick_checks mini-analyses, and lets plot_energy_spectrum use the Feldman-Cousins error bars from multihist >= 0.6.4.
  • Add straxen.log_x and straxen.log_y to make a matplotlib logarthmic x/y axis with scalar ticks (i.e. 1 2 5 10 20 50 instead of 10^0, 10^1, etc). This is used in the mini-analyses, band I like having it here rather than copy-pasting it in all my notebooks :-)
  • Fixes some outdated references to the removed peak_classification in the holoviews waveform display. It still does not work in the current holoviews due to some ZeroDivisionError unfortunately.

Merge request reports

Loading