blimpy/calib_utils/calib_plots.py
def plot_fullcalib(dio_cross,feedtype='l',**kwargs):
    '''
    Generates and shows five plots: Uncalibrated diode, calibrated diode, fold information,
    phase offsets, and gain offsets for a noise diode measurement. Most useful diagnostic plot to
    make sure calibration proceeds correctly.
    '''

    plt.figure("Multiple Calibration Plots", figsize=(12,9))
    left, width = 0.075,0.435
    bottom, height = 0.45,0.5
    width2 = 0.232
    bottom2, height2 = 0.115,0.0975

    rect_uncal = [left,bottom,width,height]
    rect_cal = [left+width+0.025,bottom,width,height]
    rect_fold = [left,bottom2,width2,0.22]
    rect_gain1 = [left+width2+0.1,bottom2,width2,height2]
    rect_phase1 = [left+width2*2+0.1*2,bottom2,width2,height2]
    rect_gain2 = [left+width2+0.1,bottom2+height2+0.025,width2,height2]
    rect_phase2 = [left+width2*2+0.1*2,bottom2+height2+0.025,width2,height2]

    #--------
    axFold = plt.axes(rect_fold)
    print('Plotting Diode Fold')
    plot_diode_fold(dio_cross,bothfeeds=False,feedtype=feedtype,min_samp=2000,max_samp=5500,legend=False,**kwargs)

    #--------
    print('Plotting Gain Offsets')
    plot_gain_offsets(dio_cross,feedtype=feedtype,ax1=rect_gain2,ax2=rect_gain1,legend=False,**kwargs)

    #--------
    print('Plotting Phase Offsets')
    plot_phase_offsets(dio_cross,feedtype=feedtype,ax1=rect_phase1,ax2=rect_phase2,legend=False,**kwargs)
    plt.ylabel('')

    #--------
    ax_uncal = plt.axes(rect_uncal)
    print('Plotting Uncalibrated Diode')
    plot_Stokes_diode(dio_cross,feedtype=feedtype,**kwargs)

    #--------
    ax_cal = plt.axes(rect_cal,sharey=ax_uncal)
    print('Plotting Calibrated Diode')
    plot_calibrated_diode(dio_cross,feedtype=feedtype,**kwargs)
    plt.ylabel('')
    plt.setp(ax_cal.get_yticklabels(),visible=False)

    plt.savefig(dio_cross[:-4]+'.stokescalib.png',dpi=2000)
    plt.show()
def plot_fullcalib(dio_cross,feedtype='l',**kwargs):
    '''
    Generates and shows five plots: Uncalibrated diode, calibrated diode, fold information,
    phase offsets, and gain offsets for a noise diode measurement. Most useful diagnostic plot to
    make sure calibration proceeds correctly.
    '''

    plt.figure("Multiple Calibration Plots", figsize=(12,9))
    left, width = 0.075,0.435
    bottom, height = 0.45,0.5
    width2 = 0.232
    bottom2, height2 = 0.115,0.0975

    rect_uncal = [left,bottom,width,height]
    rect_cal = [left+width+0.025,bottom,width,height]
    rect_fold = [left,bottom2,width2,0.22]
    rect_gain1 = [left+width2+0.1,bottom2,width2,height2]
    rect_phase1 = [left+width2*2+0.1*2,bottom2,width2,height2]
    rect_gain2 = [left+width2+0.1,bottom2+height2+0.025,width2,height2]
    rect_phase2 = [left+width2*2+0.1*2,bottom2+height2+0.025,width2,height2]

    #--------
    axFold = plt.axes(rect_fold)
    print('Plotting Diode Fold')
    plot_diode_fold(dio_cross,bothfeeds=False,feedtype=feedtype,min_samp=2000,max_samp=5500,legend=False,**kwargs)

    #--------
    print('Plotting Gain Offsets')
    plot_gain_offsets(dio_cross,feedtype=feedtype,ax1=rect_gain2,ax2=rect_gain1,legend=False,**kwargs)

    #--------
    print('Plotting Phase Offsets')
    plot_phase_offsets(dio_cross,feedtype=feedtype,ax1=rect_phase1,ax2=rect_phase2,legend=False,**kwargs)
    plt.ylabel('')

    #--------
    ax_uncal = plt.axes(rect_uncal)
    print('Plotting Uncalibrated Diode')
    plot_Stokes_diode(dio_cross,feedtype=feedtype,**kwargs)

    #--------
    ax_cal = plt.axes(rect_cal,sharey=ax_uncal)
    print('Plotting Calibrated Diode')
    plot_calibrated_diode(dio_cross,feedtype=feedtype,**kwargs)
    plt.ylabel('')
    plt.setp(ax_cal.get_yticklabels(),visible=False)

    plt.savefig(dio_cross[:-4]+'.stokescalib.png',dpi=2000)
    plt.show()
def plot_fullcalib ( dio_cross , feedtype = 'l' , * * kwargs ) : plt . figure ( "Multiple Calibration Plots" , figsize = ( 12 , 9 ) ) left , width = 0.075 , 0.435 bottom , height = 0.45 , 0.5 width2 = 0.232 bottom2 , height2 = 0.115 , 0.0975 rect_uncal = [ left , bottom , width , height ] rect_cal = [ left + width + 0.025 , bottom , width , height ] rect_fold = [ left , bottom2 , width2 , 0.22 ] rect_gain1 = [ left + width2 + 0.1 , bottom2 , width2 , height2 ] rect_phase1 = [ left + width2 * 2 + 0.1 * 2 , bottom2 , width2 , height2 ] rect_gain2 = [ left + width2 + 0.1 , bottom2 + height2 + 0.025 , width2 , height2 ] rect_phase2 = [ left + width2 * 2 + 0.1 * 2 , bottom2 + height2 + 0.025 , width2 , height2 ] #-------- axFold = plt . axes ( rect_fold ) print ( 'Plotting Diode Fold' ) plot_diode_fold ( dio_cross , bothfeeds = False , feedtype = feedtype , min_samp = 2000 , max_samp = 5500 , legend = False , * * kwargs ) #-------- print ( 'Plotting Gain Offsets' ) plot_gain_offsets ( dio_cross , feedtype = feedtype , ax1 = rect_gain2 , ax2 = rect_gain1 , legend = False , * * kwargs ) #-------- print ( 'Plotting Phase Offsets' ) plot_phase_offsets ( dio_cross , feedtype = feedtype , ax1 = rect_phase1 , ax2 = rect_phase2 , legend = False , * * kwargs ) plt . ylabel ( '' ) #-------- ax_uncal = plt . axes ( rect_uncal ) print ( 'Plotting Uncalibrated Diode' ) plot_Stokes_diode ( dio_cross , feedtype = feedtype , * * kwargs ) #-------- ax_cal = plt . axes ( rect_cal , sharey = ax_uncal ) print ( 'Plotting Calibrated Diode' ) plot_calibrated_diode ( dio_cross , feedtype = feedtype , * * kwargs ) plt . ylabel ( '' ) plt . setp ( ax_cal . get_yticklabels ( ) , visible = False ) plt . savefig ( dio_cross [ : - 4 ] + '.stokescalib.png' , dpi = 2000 ) plt . show ( )
Generates and shows five plots: Uncalibrated diode, calibrated diode, fold information,
    phase offsets, and gain offsets for a noise diode measurement. Most useful diagnostic plot to
    make sure calibration proceeds correctly.
Generates and shows five plots : Uncalibrated diode calibrated diode fold information phase offsets and gain offsets for a noise diode measurement . Most useful diagnostic plot to make sure calibration proceeds correctly .