()
| 1018 | |
| 1019 | |
| 1020 | def 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 | |
| 1032 | def test_hexbin_string_norm(): |