def plot_pi_time (self, ccdnum): import omega as om p = om.quickDF (self.events[self.events.ccdnr == ccdnum][['dmjd', 'pi']], self.targ_name, lines=False) self._plot_add_gtis (p, ccdnum) p.setLabels ('MJD - %.0f' % self.mjd0, 'PI') return p
def plot_curve (self, ccdnum=None): import omega as om p = om.quickDF (self.lc[['dmjd', 'rate', 'u_rate']].dropna (), self.targ_name, lines=False) if ccdnum is not None: self._plot_add_gtis (p, ccdnum) p.setLabels ('MJD - %.0f' % self.mjd0, 'Count rate') return p