Return True if a substring is found anywhere in an axes
(substring: str, ax: mpl.axes.Axes)
| 97 | |
| 98 | |
| 99 | def substring_in_axes(substring: str, ax: mpl.axes.Axes) -> bool: |
| 100 | """ |
| 101 | Return True if a substring is found anywhere in an axes |
| 102 | """ |
| 103 | alltxt: set[str] = {t.get_text() for t in ax.findobj(mpl.text.Text)} |
| 104 | return any(substring in txt for txt in alltxt) |
| 105 | |
| 106 | |
| 107 | def substring_not_in_axes(substring: str, ax: mpl.axes.Axes) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…