ctaplot/plots/plots.py
def plot_impact_parameter_error_site_center(reco_x, reco_y, simu_x, simu_y, ax=None, **kwargs):
    """
    Plot the impact parameter error as a function of the distance to the site center.

    Parameters
    ----------
    reco_x: `numpy.ndarray`
    reco_y: `numpy.ndarray`
    simu_x: `numpy.ndarray`
    simu_y: `numpy.ndarray`
    ax: `matplotlib.pyplot.axes`
    kwargs: kwargs for `matplotlib.pyplot.hist2d`

    Returns
    -------
    ax
    """

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

    imp_err = ana.impact_parameter_error(reco_x, reco_y, simu_x, simu_y)
    distance_center = np.sqrt(simu_x ** 2 + simu_y ** 2)

    ax.hist2d(distance_center, imp_err, **kwargs)
    ax.set_xlabel("Distance to site center")
    ax.set_ylabel("Impact point error")
    ax.grid('on', which='both')
    return ax

    Plot the impact parameter error as a function of the distance to the site center.

    Parameters
    ----------
    reco_x: `numpy.ndarray`
    reco_y: `numpy.ndarray`
    simu_x: `numpy.ndarray`
    simu_y: `numpy.ndarray`
    ax: `matplotlib.pyplot.axes`
    kwargs: kwargs for `matplotlib.pyplot.hist2d`

    Returns
    -------
    ax
    
Plot the impact parameter error as a function of the distance to the site center.
Parameters



Returns

ax
Plot the impact parameter error as a function of the distance to the site center . Parameters Returns ax
def plot_impact_parameter_error_site_center(reco_x, reco_y, simu_x, simu_y, ax=None, **kwargs):
    ax = plt.gca() if ax is None else ax
    imp_err = ana.impact_parameter_error(reco_x, reco_y, simu_x, simu_y)
    distance_center = np.sqrt(simu_x ** 2 + simu_y ** 2)
    ax.hist2d(distance_center, imp_err, **kwargs)
    ax.set_xlabel("Distance to site center")
    ax.set_ylabel("Impact point error")
    ax.grid('on', which='both')
    return ax
def plot_impact_parameter_error_site_center ( reco_x , reco_y , simu_x , simu_y , ax = None , ** kwargs ) : ax = plt . gca ( ) if ax is None else ax imp_err = ana . impact_parameter_error ( reco_x , reco_y , simu_x , simu_y ) distance_center = np . sqrt ( simu_x ** 2 + simu_y ** 2 ) ax . hist2d ( distance_center , imp_err , ** kwargs ) ax . set_xlabel ( "Distance to site center" ) ax . set_ylabel ( "Impact point error" ) ax . grid ( 'on' , which = 'both' ) return ax
Plot the impact parameter error as a function of the distance to the site center.
Plot the impact parameter error as a function of the distance to the site center .
"""
    Plot the impact parameter error as a function of the distance to the site center.

    Parameters
    ----------
    reco_x: `numpy.ndarray`
    reco_y: `numpy.ndarray`
    simu_x: `numpy.ndarray`
    simu_y: `numpy.ndarray`
    ax: `matplotlib.pyplot.axes`
    kwargs: kwargs for `matplotlib.pyplot.hist2d`

    Returns
    -------
    ax
    """
reco_x
reco_y
simu_x
simu_y
ax