()
| 1191 | |
| 1192 | |
| 1193 | def test_unclipped(): |
| 1194 | fig, ax = plt.subplots() |
| 1195 | ax.set_axis_off() |
| 1196 | im = ax.imshow([[0, 0], [0, 0]], aspect="auto", extent=(-10, 10, -10, 10), |
| 1197 | cmap='gray', clip_on=False) |
| 1198 | ax.set(xlim=(0, 1), ylim=(0, 1)) |
| 1199 | fig.canvas.draw() |
| 1200 | # The unclipped image should fill the *entire* figure and be black. |
| 1201 | # Ignore alpha for this comparison. |
| 1202 | assert (np.array(fig.canvas.buffer_rgba())[..., :3] == 0).all() |
| 1203 | |
| 1204 | |
| 1205 | def test_respects_bbox(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…