pint.plot_utils.phaseogram_binned

pint.plot_utils.phaseogram_binned(mjds_in, phases, weights=None, title=None, bins=64, rotate=0.0, size=5, alpha=0.25, width=6, maxphs=2.0, plotfile=None)[source]

Make a nice 2-panel phaseogram

Makes a binned phaseogram of photons with phases, where the contribution to each bin can be determined by an array of weights.

Parameters:
  • mjds_in (array or astropy.units.Quantity or astropy.time.Time) – Assumes units of days if bare numerical array, otherwise will convert Quantity or Time into days.

  • phases (array) – Phases for each photon, assumes range is [0,1)