MCPcopy
hub / github.com/matplotlib/matplotlib / test_shared

Function test_shared

lib/matplotlib/tests/test_pickle.py:253–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

251
252
253def test_shared():
254 fig, axs = plt.subplots(2, sharex=True)
255 fig = pickle.loads(pickle.dumps(fig))
256 fig.axes[0].set_xlim(10, 20)
257 assert fig.axes[1].get_xlim() == (10, 20)
258
259
260def test_inset_and_secondary():

Callers

nothing calls this directly

Calls 3

subplotsMethod · 0.45
set_xlimMethod · 0.45
get_xlimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…