ctaplot/plots/plots.py
def hist_impact_parameter_error(reco_x, reco_y, simu_x, simu_y, ax=None, **kwargs):
    """
    plot impact parameter error distribution and save it under Outfile
    Parameters
    ----------
    reco_x: `numpy.ndarray`
    reco_y: `numpy.ndarray`
    simu_x: `numpy.ndarray`
    simu_y: `numpy.ndarray`
    Outfile: string
    """
    d = ana.impact_parameter_error(reco_x, reco_y, simu_x, simu_y)

    ax = plt.gca() if ax is None else ax

    ax.spines["top"].set_visible(False)
    ax.spines["right"].set_visible(False)
    ax.get_xaxis().tick_bottom()
    ax.get_yaxis().tick_left()
    ax.set_xlabel('Error on impact parameter [m]')
    ax.set_ylabel('Count')
    ax.set_title('Impact parameter resolution')

    kwargs['bins'] = 40 if 'bins' not in kwargs else kwargs['bins']

    ax.hist(d, **kwargs)
    return ax

    plot impact parameter error distribution and save it under Outfile
    Parameters
    ----------
    reco_x: `numpy.ndarray`
    reco_y: `numpy.ndarray`
    simu_x: `numpy.ndarray`
    simu_y: `numpy.ndarray`
    Outfile: string
    
plot impact parameter error distribution and save it under Outfile
Parameters


plot impact parameter error distribution and save it under Outfile Parameters
def hist_impact_parameter_error(reco_x, reco_y, simu_x, simu_y, ax=None, **kwargs):
    d = ana.impact_parameter_error(reco_x, reco_y, simu_x, simu_y)
    ax = plt.gca() if ax is None else ax
    ax.spines["top"].set_visible(False)
    ax.spines["right"].set_visible(False)
    ax.get_xaxis().tick_bottom()
    ax.get_yaxis().tick_left()
    ax.set_xlabel('Error on impact parameter [m]')
    ax.set_ylabel('Count')
    ax.set_title('Impact parameter resolution')
    kwargs['bins'] = 40 if 'bins' not in kwargs else kwargs['bins']
    ax.hist(d, **kwargs)
    return ax
def hist_impact_parameter_error ( reco_x , reco_y , simu_x , simu_y , ax = None , ** kwargs ) : d = ana . impact_parameter_error ( reco_x , reco_y , simu_x , simu_y ) ax = plt . gca ( ) if ax is None else ax ax . spines [ "top" ] . set_visible ( False ) ax . spines [ "right" ] . set_visible ( False ) ax . get_xaxis ( ) . tick_bottom ( ) ax . get_yaxis ( ) . tick_left ( ) ax . set_xlabel ( 'Error on impact parameter [m]' ) ax . set_ylabel ( 'Count' ) ax . set_title ( 'Impact parameter resolution' ) kwargs [ 'bins' ] = 40 if 'bins' not in kwargs else kwargs [ 'bins' ] ax . hist ( d , ** kwargs ) return ax
plot impact parameter error distribution and save it under Outfile
Parameters
plot impact parameter error distribution and save it under Outfile Parameters
"""
    plot impact parameter error distribution and save it under Outfile
    Parameters
    ----------
    reco_x: `numpy.ndarray`
    reco_y: `numpy.ndarray`
    simu_x: `numpy.ndarray`
    simu_y: `numpy.ndarray`
    Outfile: string
    """
reco_x
reco_y
simu_x
simu_y
ax