Lv3_swift.py
def plot_compare2(xlims1,xlims2):
    """
    Plots the daily light curve from the Swift data for Cen X-3. Can generalize to other objects in the future.
    This particular function is to compare TWO 'epochs' of observations.

    xlims1 - list which provides the lower time boundary (in MJD) and upper time boundary for the 1st epoch
    xlims2 - list which provides the lower time boundary (in MJD) and upper time boundary for the 2nd epoch
    """

    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='x')
    plt.xlabel('Time(d)')
    plt.xlim([xlims1[0],xlims1[1]])
    plt.ylabel('Count (count/cm^2/s)')

    plt.figure(2)
    plt.errorbar(time,rate,yerr=error,fmt='x')
    plt.xlabel('Time(d)')
    plt.xlim([xlims2[0],xlims2[1]])
    plt.ylabel('Count (count/cm^2/s)')

    Plots the daily light curve from the Swift data for Cen X-3. Can generalize to other objects in the future.
    This particular function is to compare TWO 'epochs' of observations.

    xlims1 - list which provides the lower time boundary (in MJD) and upper time boundary for the 1st epoch
    xlims2 - list which provides the lower time boundary (in MJD) and upper time boundary for the 2nd epoch
    
Plots the daily light curve from the Swift data for Cen X-3. Can generalize to other objects in the future.
This particular function is to compare TWO 'epochs' of observations.

list which provides the lower time boundary (in MJD) and upper time boundary for the 1st epoch
xlims2 - list which provides the lower time boundary (in MJD) and upper time boundary for the 2nd epoch
Plots the daily light curve from the Swift data for Cen X - 3 . Can generalize to other objects in the future . This particular function is to compare TWO ' epochs ' of observations . list which provides the lower time boundary ( in MJD ) and upper time boundary for the 1st epoch xlims2 - list which provides the lower time boundary ( in MJD ) and upper time boundary for the 2nd epoch
def plot_compare2(xlims1,xlims2):
    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='x')
    plt.xlabel('Time(d)')
    plt.xlim([xlims1[0],xlims1[1]])
    plt.ylabel('Count (count/cm^2/s)')
    plt.figure(2)
    plt.errorbar(time,rate,yerr=error,fmt='x')
    plt.xlabel('Time(d)')
    plt.xlim([xlims2[0],xlims2[1]])
    plt.ylabel('Count (count/cm^2/s)')
def plot_compare2 ( xlims1 , xlims2 ) : 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 = 'x' ) plt . xlabel ( 'Time(d)' ) plt . xlim ( [ xlims1 [ 0 ] , xlims1 [ 1 ] ] ) plt . ylabel ( 'Count (count/cm^2/s)' ) plt . figure ( 2 ) plt . errorbar ( time , rate , yerr = error , fmt = 'x' ) plt . xlabel ( 'Time(d)' ) plt . xlim ( [ xlims2 [ 0 ] , xlims2 [ 1 ] ] ) plt . ylabel ( 'Count (count/cm^2/s)' )
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.
    This particular function is to compare TWO 'epochs' of observations.

    xlims1 - list which provides the lower time boundary (in MJD) and upper time boundary for the 1st epoch
    xlims2 - list which provides the lower time boundary (in MJD) and upper time boundary for the 2nd epoch
    """
xlims1
xlims2