Return True if the specified text in an axes has the property assigned to property_str
(
property, property_str, target_txt, ax: mpl.axes.Axes
)
| 114 | |
| 115 | |
| 116 | def property_in_axes_text( |
| 117 | property, property_str, target_txt, ax: mpl.axes.Axes |
| 118 | ) -> bool: |
| 119 | """ |
| 120 | Return True if the specified text in an axes |
| 121 | has the property assigned to property_str |
| 122 | """ |
| 123 | alltxt: list[mpl.text.Text] = ax.findobj(mpl.text.Text) |
| 124 | return all( |
| 125 | plt.getp(t, property) == property_str |
| 126 | for t in alltxt |
| 127 | if t.get_text() == target_txt |
| 128 | ) |
| 129 | |
| 130 | |
| 131 | def easy_array(shape: tuple[int, ...], start: float = 0, stop: float = 1) -> np.ndarray: |
no outgoing calls
no test coverage detected
searching dependent graphs…