()
| 139 | |
| 140 | |
| 141 | def test_nonlinear_containment(): |
| 142 | fig, ax = plt.subplots() |
| 143 | ax.set(xscale="log", ylim=(0, 1)) |
| 144 | polygon = ax.axvspan(1, 10) |
| 145 | assert polygon.get_path().contains_point( |
| 146 | ax.transData.transform((5, .5)), polygon.get_transform()) |
| 147 | assert not polygon.get_path().contains_point( |
| 148 | ax.transData.transform((.5, .5)), polygon.get_transform()) |
| 149 | assert not polygon.get_path().contains_point( |
| 150 | ax.transData.transform((50, .5)), polygon.get_transform()) |
| 151 | |
| 152 | |
| 153 | @image_comparison(['arrow_contains_point.png'], remove_text=True, style='mpl20', |
nothing calls this directly
no test coverage detected
searching dependent graphs…