Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
253
def
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
260
def
test_inset_and_secondary():
Callers
nothing calls this directly
Calls
3
subplots
Method · 0.45
set_xlim
Method · 0.45
get_xlim
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…