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

Function test_units_rectangle

lib/matplotlib/tests/test_patches.py:554–563  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

552
553@image_comparison(['units_rectangle.png'], style='mpl20')
554def test_units_rectangle():
555 import matplotlib.testing.jpl_units as U
556 U.register()
557
558 p = mpatches.Rectangle((5*U.km, 6*U.km), 1*U.km, 2*U.km)
559
560 fig, ax = plt.subplots()
561 ax.add_patch(p)
562 ax.set_xlim([4*U.km, 7*U.km])
563 ax.set_ylim([5*U.km, 9*U.km])
564
565
566@image_comparison(['connection_patch.png'], style='mpl20', remove_text=True,

Callers

nothing calls this directly

Calls 5

add_patchMethod · 0.80
registerMethod · 0.45
subplotsMethod · 0.45
set_xlimMethod · 0.45
set_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…