ctaplot/plots/plots.py
def plot_resolution_difference(bins, reference_resolution, new_resolution, ax=None, **kwargs):
    """
    Plot the algebric difference between a new resolution and reference resolution.

    Parameters
    ----------
    bins: `numpy.ndarray`
    reference_resolution: `numpy.ndarray`
        output from `ctaplot.ana.resolution`
    new_resolution: `numpy.ndarray`
        output from `ctaplot.ana.resolution`
    ax: `matplotlib.pyplot.axis`
    kwargs: args for `ctaplot.plots.plot_resolution`

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

    ax = plt.gca() if ax is None else ax
    delta_res = new_resolution - reference_resolution
    delta_res[:, 1:] = 0    # the condidence intervals have no meaning here
    plot_resolution(bins, delta_res, ax=ax, **kwargs)
    ax.set_ylabel(r"$\Delta$ res")
    ax.set_title("Resolution difference")

    return ax

    Plot the algebric difference between a new resolution and reference resolution.

    Parameters
    ----------
    bins: `numpy.ndarray`
    reference_resolution: `numpy.ndarray`
        output from `ctaplot.ana.resolution`
    new_resolution: `numpy.ndarray`
        output from `ctaplot.ana.resolution`
    ax: `matplotlib.pyplot.axis`
    kwargs: args for `ctaplot.plots.plot_resolution`

    Returns
    -------
    ax: `matplotlib.pyplot.axis`
    
Plot the algebric difference between a new resolution and reference resolution.
Parameters



Returns


Plot the algebric difference between a new resolution and reference resolution . Parameters Returns
def plot_resolution_difference(bins, reference_resolution, new_resolution, ax=None, **kwargs):
    ax = plt.gca() if ax is None else ax
    delta_res = new_resolution - reference_resolution
    delta_res[:, 1:] = 0    
    plot_resolution(bins, delta_res, ax=ax, **kwargs)
    ax.set_ylabel(r"$\Delta$ res")
    ax.set_title("Resolution difference")
    return ax
def plot_resolution_difference ( bins , reference_resolution , new_resolution , ax = None , ** kwargs ) : ax = plt . gca ( ) if ax is None else ax delta_res = new_resolution - reference_resolution delta_res [ : , 1 : ] = 0 plot_resolution ( bins , delta_res , ax = ax , ** kwargs ) ax . set_ylabel ( r"$\Delta$ res" ) ax . set_title ( "Resolution difference" ) return ax
Plot the algebric difference between a new resolution and reference resolution.
Plot the algebric difference between a new resolution and reference resolution .
"""
    Plot the algebric difference between a new resolution and reference resolution.

    Parameters
    ----------
    bins: `numpy.ndarray`
    reference_resolution: `numpy.ndarray`
        output from `ctaplot.ana.resolution`
    new_resolution: `numpy.ndarray`
        output from `ctaplot.ana.resolution`
    ax: `matplotlib.pyplot.axis`
    kwargs: args for `ctaplot.plots.plot_resolution`

    Returns
    -------
    ax: `matplotlib.pyplot.axis`
    """ # the condidence intervals have no meaning here
bins
reference_resolution
new_resolution
ax