Here’s an example:

```
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots()
x = np.array([1, 2])
y1 = np.array([1, 2])
y2 = np.array([1, 3])
ax.plot(x, y1, label='no error')
ax.errorbar(x, y2, yerr=np.array([.1, .1]), label='error')
ax.legend()
leg = ax.get_legend()
```

Now, if I do

```
ax.get_legend_handles_labels()
```

I get

```
([<matplotlib.lines.Line2D at 0x7fb773b827c0>,
<ErrorbarContainer object of 3 artists>],
['no error', 'error'])
```

Is there a way to get the `ErrorbarContainer`

directly from accessing an attribute of `leg`

(say, if I couldn’t access `ax`

directly)?