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

Function test_connection_patch_units

lib/matplotlib/tests/test_units.py:342–353  ·  view source on GitHub ↗
(pd)

Source from the content-addressed store, hash-verified

340
341
342def test_connection_patch_units(pd):
343 # tests that this doesn't raise an error
344 fig, (ax1, ax2) = plt.subplots(nrows=2, figsize=(10, 5))
345 x = pd.Timestamp('2017-01-01T12')
346 ax1.axvline(x)
347 y = "test test"
348 ax2.axhline(y)
349 arr = mpatches.ConnectionPatch((x, 0), (0, y),
350 coordsA='data', coordsB='data',
351 axesA=ax1, axesB=ax2)
352 fig.add_artist(arr)
353 fig.draw_without_rendering()

Callers

nothing calls this directly

Calls 5

axvlineMethod · 0.80
axhlineMethod · 0.80
subplotsMethod · 0.45
add_artistMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…