Flatten axes, and filter only visible Parameters ---------- axes : matplotlib Axes object, or its list-like
(axes: Axes | Sequence[Axes])
| 325 | |
| 326 | |
| 327 | def _flatten_visible(axes: Axes | Sequence[Axes]) -> Sequence[Axes]: |
| 328 | """ |
| 329 | Flatten axes, and filter only visible |
| 330 | |
| 331 | Parameters |
| 332 | ---------- |
| 333 | axes : matplotlib Axes object, or its list-like |
| 334 | |
| 335 | """ |
| 336 | from pandas.plotting._matplotlib.tools import flatten_axes |
| 337 | |
| 338 | axes_ndarray = flatten_axes(axes) |
| 339 | axes = [ax for ax in axes_ndarray if ax.get_visible()] |
| 340 | return axes |
| 341 | |
| 342 | |
| 343 | def _check_has_errorbars(axes, xerr=0, yerr=0): |