()
| 686 | |
| 687 | @image_comparison(['bbox_image_inverted'], remove_text=True, style='mpl20') |
| 688 | def test_bbox_image_inverted(): |
| 689 | # This is just used to produce an image to feed to BboxImage |
| 690 | image = np.arange(100).reshape((10, 10)) |
| 691 | |
| 692 | fig, ax = plt.subplots() |
| 693 | bbox_im = BboxImage( |
| 694 | TransformedBbox(Bbox([[100, 100], [0, 0]]), ax.transData), |
| 695 | interpolation='nearest') |
| 696 | bbox_im.set_data(image) |
| 697 | bbox_im.set_clip_on(False) |
| 698 | ax.set_xlim(0, 100) |
| 699 | ax.set_ylim(0, 100) |
| 700 | ax.add_artist(bbox_im) |
| 701 | |
| 702 | image = np.identity(10) |
| 703 | |
| 704 | bbox_im = BboxImage(TransformedBbox(Bbox([[0.1, 0.2], [0.3, 0.25]]), |
| 705 | ax.get_figure().transFigure), |
| 706 | interpolation='nearest') |
| 707 | bbox_im.set_data(image) |
| 708 | bbox_im.set_clip_on(False) |
| 709 | ax.add_artist(bbox_im) |
| 710 | |
| 711 | |
| 712 | def test_get_window_extent_for_AxisImage(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…