def plot_containment_vs_energy(self, fractions=[0.68, 0.95], thetas=Angle([0, 1], 'deg'), ax=None, **kwargs):
    'Plot containment fraction as a function of energy.\n        '
    import matplotlib.pyplot as plt
    ax = (plt.gca() if (ax is None) else ax)
    energy = self.energy_axis_true.center
    for theta in thetas:
        for fraction in fractions:
            radius = self.containment_radius(energy, theta, fraction).squeeze()
            kwargs.setdefault('label', f'{theta.deg} deg, {(100 * fraction):.1f}%')
            ax.plot(energy.value, radius.value, **kwargs)
    ax.semilogx()
    ax.legend(loc='best')
    ax.set_xlabel('Energy (TeV)')
    ax.set_ylabel('Containment radius (deg)')
Plot containment fraction as a function of energy.
def plot_containment_vs_energy(self, fractions=[0.68, 0.95], thetas=Angle([0, 1], 'deg'), ax=None, **kwargs):
    '\n        '
    import matplotlib.pyplot as plt
    ax = (plt.gca() if (ax is None) else ax)
    energy = self.energy_axis_true.center
    for theta in thetas:
        for fraction in fractions:
            radius = self.containment_radius(energy, theta, fraction).squeeze()
            kwargs.setdefault('label', f'{theta.deg} deg, {(100 * fraction):.1f}%')
            ax.plot(energy.value, radius.value, **kwargs)
    ax.semilogx()
    ax.legend(loc='best')
    ax.set_xlabel('Energy (TeV)')
    ax.set_ylabel('Containment radius (deg)')