Lightcurve#
- class ptiming_ana.phaseogram.Lightcurve(pulsar_phases, binning)#
Bases:
object
A class to construct the lightcurve from the information provided by the rest of classes.
- Parameters:
- pulsar_phases: PulsarPhase object
Object from which we extract the pulsar phases to construct the lightcurve
- nbinsint, array
Number of bins used in the lightcurve if int Bin edges used in the lightcurve if array
- Attributes:
- binningPhaseBinning object
Binning information
- statsPeriodicityTest object
Information of the statistical tests.
- lc: numpy histogram object
Information of the pular phase histogram
Methods Summary
draw_background
(pulsar_phases, color[, hline])draw_density_hist
(phase_limits, colorhist[, ...])draw_fitting
(pulsar_phases, color[, ...])draw_histogram
(phase_limits, colorhist)draw_peakregion
(pulsar_phases, name, color)draw_stats
(pulsar_phases, phase_limits[, stats])show_phaseogram
(pulsar_phases[, ...])Methods Documentation
- chi_sqr_pulsar_test()#
- draw_background(pulsar_phases, color, hline=True)#
- draw_density_hist(phase_limits, colorhist, label=None, fill=True)#
- draw_fitting(pulsar_phases, color, density=False, label=None)#
- draw_histogram(phase_limits, colorhist)#
- draw_peakregion(pulsar_phases, name, color)#
- draw_stats(pulsar_phases, phase_limits, stats='short')#
- show_phaseogram(pulsar_phases, phase_limits=[0, 1], stats='short', background=True, signal=['P1', 'P2', 'P3'], colorhist='blue', colorb='grey', colorP=['orange', 'green', 'purple'], colorfit='red', fit=False, hline=True, stats_label=True, time_label=True, add_legend=True)#