()
| 561 | |
| 562 | |
| 563 | def test_picking(): |
| 564 | fig, ax = plt.subplots() |
| 565 | col = ax.scatter([0], [0], [1000], picker=True) |
| 566 | fig.savefig(io.BytesIO(), dpi=fig.dpi) |
| 567 | mouse_event = SimpleNamespace(x=325, y=240) |
| 568 | found, indices = col.contains(mouse_event) |
| 569 | assert found |
| 570 | assert_array_equal(indices['ind'], [0]) |
| 571 | |
| 572 | |
| 573 | def test_quadmesh_contains(): |