ctaplot/plots/plots.py
def plot_effective_area_cta_performance(cta_site, ax=None, **kwargs):
    """
    Plot the CTA performances for the effective area as a function of the true energy

    Parameters
    ----------
    cta_site: string
        see `ctaplot.ana.cta_requirement`
    ax: `matplotlib.pyplot.axes`

    Returns
    -------
    ax: `matplotlib.pyplot.axes`
    """

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

    cta_req = ana.cta_performance(cta_site)
    e_cta, ef_cta = cta_req.get_effective_area()

    ax.set_xscale('log')
    ax.set_yscale('log')
    ax.set_xlabel(r'$E_T$ [TeV]')
    ax.set_ylabel(r'Effective Area $[m^2]$')

    if not 'label' in kwargs:
        kwargs['label'] = "CTA performance {}".format(cta_site)

    ax.plot(e_cta, ef_cta, **kwargs)
    ax.grid('on', which='both')
    ax.legend()
    return ax

    Plot the CTA performances for the effective area as a function of the true energy

    Parameters
    ----------
    cta_site: string
        see `ctaplot.ana.cta_requirement`
    ax: `matplotlib.pyplot.axes`

    Returns
    -------
    ax: `matplotlib.pyplot.axes`
    
Plot the CTA performances for the effective area as a function of the true energy
Parameters



Returns


Plot the CTA performances for the effective area as a function of the true energy Parameters Returns
def plot_effective_area_cta_performance(cta_site, ax=None, **kwargs):
    ax = plt.gca() if ax is None else ax
    cta_req = ana.cta_performance(cta_site)
    e_cta, ef_cta = cta_req.get_effective_area()
    ax.set_xscale('log')
    ax.set_yscale('log')
    ax.set_xlabel(r'$E_T$ [TeV]')
    ax.set_ylabel(r'Effective Area $[m^2]$')
    if not 'label' in kwargs:
        kwargs['label'] = "CTA performance {}".format(cta_site)
    ax.plot(e_cta, ef_cta, **kwargs)
    ax.grid('on', which='both')
    ax.legend()
    return ax
def plot_effective_area_cta_performance ( cta_site , ax = None , ** kwargs ) : ax = plt . gca ( ) if ax is None else ax cta_req = ana . cta_performance ( cta_site ) e_cta , ef_cta = cta_req . get_effective_area ( ) ax . set_xscale ( 'log' ) ax . set_yscale ( 'log' ) ax . set_xlabel ( r'$E_T$ [TeV]' ) ax . set_ylabel ( r'Effective Area $[m^2]$' ) if not 'label' in kwargs : kwargs [ 'label' ] = "CTA performance {}" . format ( cta_site ) ax . plot ( e_cta , ef_cta , ** kwargs ) ax . grid ( 'on' , which = 'both' ) ax . legend ( ) return ax
Plot the CTA performances for the effective area as a function of the true energy
Parameters
Plot the CTA performances for the effective area as a function of the true energy Parameters
"""
    Plot the CTA performances for the effective area as a function of the true energy

    Parameters
    ----------
    cta_site: string
        see `ctaplot.ana.cta_requirement`
    ax: `matplotlib.pyplot.axes`

    Returns
    -------
    ax: `matplotlib.pyplot.axes`
    """
cta_site
ax