Lv3_swift.py
def plot(xlim1,xlim2):
    """
    Plots the daily light curve from the Swift data for Cen X-3. Can generalize to other objects in the future.

    xlim1 - lower time boundary (in MJD)
    xlim2 - upper time boundary (in MJD)
    """

    swift_file = Lv0_dirs.BASE_DIR + 'CenX-3.lc.txt'

    time,rate,error = np.loadtxt(swift_file,dtype='float',skiprows=5,usecols=(0,1,2),unpack=True)

    plt.figure(1)
    plt.errorbar(time,rate,yerr=error,fmt='bx',alpha=0.4)
    plt.xlabel('Time(d)')
    plt.xlim([xlim1,xlim2])
    plt.ylabel('Count (count/cm^2/s)')
    plt.axhline(y=0,lw=0.5,alpha=0.5)

    plt.plot(sci_phase_t,sci_phase_flux,'rx')
    plt.show()

    Plots the daily light curve from the Swift data for Cen X-3. Can generalize to other objects in the future.

    xlim1 - lower time boundary (in MJD)
    xlim2 - upper time boundary (in MJD)
    
Plots the daily light curve from the Swift data for Cen X-3. Can generalize to other objects in the future.
xlim1 - lower time boundary (in MJD)
xlim2 - upper time boundary (in MJD)
Plots the daily light curve from the Swift data for Cen X - 3 . Can generalize to other objects in the future . xlim1 - lower time boundary ( in MJD ) xlim2 - upper time boundary ( in MJD )
def plot(xlim1,xlim2):
    swift_file = Lv0_dirs.BASE_DIR + 'CenX-3.lc.txt'
    time,rate,error = np.loadtxt(swift_file,dtype='float',skiprows=5,usecols=(0,1,2),unpack=True)
    plt.figure(1)
    plt.errorbar(time,rate,yerr=error,fmt='bx',alpha=0.4)
    plt.xlabel('Time(d)')
    plt.xlim([xlim1,xlim2])
    plt.ylabel('Count (count/cm^2/s)')
    plt.axhline(y=0,lw=0.5,alpha=0.5)
    plt.plot(sci_phase_t,sci_phase_flux,'rx')
    plt.show()
def plot ( xlim1 , xlim2 ) : swift_file = Lv0_dirs . BASE_DIR + 'CenX-3.lc.txt' time , rate , error = np . loadtxt ( swift_file , dtype = 'float' , skiprows = 5 , usecols = ( 0 , 1 , 2 ) , unpack = True ) plt . figure ( 1 ) plt . errorbar ( time , rate , yerr = error , fmt = 'bx' , alpha = 0.4 ) plt . xlabel ( 'Time(d)' ) plt . xlim ( [ xlim1 , xlim2 ] ) plt . ylabel ( 'Count (count/cm^2/s)' ) plt . axhline ( y = 0 , lw = 0.5 , alpha = 0.5 ) plt . plot ( sci_phase_t , sci_phase_flux , 'rx' ) plt . show ( )
Plots the daily light curve from the Swift data for Cen X-3.
Plots the daily light curve from the Swift data for Cen X - 3 .
"""
    Plots the daily light curve from the Swift data for Cen X-3. Can generalize to other objects in the future.

    xlim1 - lower time boundary (in MJD)
    xlim2 - upper time boundary (in MJD)
    """
xlim1
xlim2