MCPcopy
hub / github.com/pandas-dev/pandas / _check_patches_all_filled

Function _check_patches_all_filled

pandas/tests/plotting/common.py:109–123  ·  view source on GitHub ↗

Check for each artist whether it is filled or not Parameters ---------- axes : matplotlib Axes object, or its list-like filled : bool expected filling

(axes: Axes | Sequence[Axes], filled: bool = True)

Source from the content-addressed store, hash-verified

107
108
109def _check_patches_all_filled(axes: Axes | Sequence[Axes], filled: bool = True) -> None:
110 """
111 Check for each artist whether it is filled or not
112
113 Parameters
114 ----------
115 axes : matplotlib Axes object, or its list-like
116 filled : bool
117 expected filling
118 """
119
120 axes = _flatten_visible(axes)
121 for ax in axes:
122 for patch in ax.patches:
123 assert patch.fill == filled
124
125
126def _get_colors_mapped(series, colors):

Callers 3

Calls 1

_flatten_visibleFunction · 0.85

Tested by 3