MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_bbox_image_inverted

Function test_bbox_image_inverted

lib/matplotlib/tests/test_image.py:688–709  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

686
687@image_comparison(['bbox_image_inverted'], remove_text=True, style='mpl20')
688def 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
712def test_get_window_extent_for_AxisImage():

Callers

nothing calls this directly

Calls 10

BboxImageClass · 0.90
TransformedBboxClass · 0.90
BboxClass · 0.90
subplotsMethod · 0.45
set_dataMethod · 0.45
set_clip_onMethod · 0.45
set_xlimMethod · 0.45
set_ylimMethod · 0.45
add_artistMethod · 0.45
get_figureMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…