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

Function test_hexbin_extent

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

Source from the content-addressed store, hash-verified

1003@image_comparison(['hexbin_extent.png', 'hexbin_extent.png'], remove_text=True,
1004 style='_classic_test')
1005def test_hexbin_extent():
1006 # this test exposes sf bug 2856228
1007 fig, ax = plt.subplots()
1008 data = (np.arange(2000) / 2000).reshape((2, 1000))
1009 x, y = data
1010
1011 ax.hexbin(x, y, extent=[.1, .3, .6, .7])
1012
1013 # Reuse testcase from above for a labeled data test
1014 data = {"x": x, "y": y}
1015
1016 fig, ax = plt.subplots()
1017 ax.hexbin("x", "y", extent=[.1, .3, .6, .7], data=data)
1018
1019
1020def test_hexbin_bad_extents():

Callers

nothing calls this directly

Calls 2

hexbinMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…