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

Function test_hexbin_bad_extents

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

Source from the content-addressed store, hash-verified

1018
1019
1020def test_hexbin_bad_extents():
1021 fig, ax = plt.subplots()
1022 data = (np.arange(20) / 20).reshape((2, 10))
1023 x, y = data
1024
1025 with pytest.raises(ValueError, match="In extent, xmax must be greater than xmin"):
1026 ax.hexbin(x, y, extent=(1, 0, 0, 1))
1027
1028 with pytest.raises(ValueError, match="In extent, ymax must be greater than ymin"):
1029 ax.hexbin(x, y, extent=(0, 1, 1, 0))
1030
1031
1032def test_hexbin_string_norm():

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…