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

Function test_hexbin_string_norm

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

Source from the content-addressed store, hash-verified

1030
1031
1032def test_hexbin_string_norm():
1033 fig, ax = plt.subplots()
1034 hex = ax.hexbin(np.random.rand(10), np.random.rand(10), norm="log", vmin=2, vmax=5)
1035 assert isinstance(hex, matplotlib.collections.PolyCollection)
1036 assert isinstance(hex.norm, matplotlib.colors.LogNorm)
1037 assert hex.norm.vmin == 2
1038 assert hex.norm.vmax == 5
1039
1040
1041@image_comparison(['hexbin_empty.png'], remove_text=True, style='_classic_test')

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…