MCPcopy Index your code
hub / github.com/pydata/xarray / substring_not_in_axes

Function substring_not_in_axes

xarray/tests/test_plot.py:107–113  ·  view source on GitHub ↗

Return True if a substring is not found anywhere in an axes

(substring: str, ax: mpl.axes.Axes)

Source from the content-addressed store, hash-verified

105
106
107def substring_not_in_axes(substring: str, ax: mpl.axes.Axes) -> bool:
108 """
109 Return True if a substring is not found anywhere in an axes
110 """
111 alltxt: set[str] = {t.get_text() for t in ax.findobj(mpl.text.Text)}
112 check = [(substring not in txt) for txt in alltxt]
113 return all(check)
114
115
116def property_in_axes_text(

Callers 1

test_default_labelsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…