MCPcopy
hub / github.com/matplotlib/matplotlib / test_multiplot_autoscale

Function test_multiplot_autoscale

lib/matplotlib/tests/test_axes.py:9183–9189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9181
9182
9183def test_multiplot_autoscale():
9184 fig = plt.figure()
9185 ax1, ax2 = fig.subplots(2, 1, sharex='all')
9186 ax1.plot([18000, 18250, 18500, 18750], [2, 3, 2, 3])
9187 ax2.axhspan(-5, 5)
9188 xlim = ax1.get_xlim()
9189 assert np.allclose(xlim, [18000, 18800])
9190
9191
9192def test_sharing_does_not_link_positions():

Callers

nothing calls this directly

Calls 6

figureMethod · 0.80
axhspanMethod · 0.80
allcloseMethod · 0.80
subplotsMethod · 0.45
plotMethod · 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…