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

Function test_hexbin_empty

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

Source from the content-addressed store, hash-verified

1040
1041@image_comparison(['hexbin_empty.png'], remove_text=True, style='_classic_test')
1042def test_hexbin_empty():
1043 # From #3886: creating hexbin from empty dataset raises ValueError
1044 fig, ax = plt.subplots()
1045 ax.hexbin([], [])
1046 # From #23922: creating hexbin with log scaling from empty
1047 # dataset raises ValueError
1048 ax.hexbin([], [], bins='log')
1049 # From #27103: np.max errors when handed empty data
1050 ax.hexbin([], [], C=[], reduce_C_function=np.max)
1051 # No string-comparison warning from NumPy.
1052 ax.hexbin([], [], bins=np.arange(10))
1053
1054
1055def test_hexbin_pickable():

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…