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

Function test_hist2d_autolimits

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

Source from the content-addressed store, hash-verified

2913
2914@mpl.style.context("mpl20")
2915def test_hist2d_autolimits():
2916 x, y = np.random.random((2, 100))
2917 ax = plt.figure().add_subplot()
2918 ax.hist2d(x, y)
2919 assert ax.get_xlim() == (x.min(), x.max())
2920 assert ax.get_ylim() == (y.min(), y.max())
2921 assert ax.get_autoscale_on() # Autolimits have not been disabled.
2922
2923
2924class TestScatter:

Callers

nothing calls this directly

Calls 8

add_subplotMethod · 0.80
figureMethod · 0.80
hist2dMethod · 0.80
minMethod · 0.80
maxMethod · 0.80
get_autoscale_onMethod · 0.80
get_xlimMethod · 0.45
get_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…