Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df94d8a

Browse files
author
Clement Gilli
committed
fix linter
1 parent 98f30b8 commit df94d8a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -976,14 +976,16 @@ def test_hexbin_bad_extents():
976976
with pytest.raises(ValueError, match="In extent, ymax must be greater than ymin"):
977977
ax.hexbin(x, y, extent=(0, 1, 1, 0))
978978

979+
979980
def test_hexbin_string_norm():
980981
fig, ax = plt.subplots()
981-
hex = ax.hexbin(np.random.rand(10), np.random.rand(10), norm="log",vmin=2,vmax=5)
982-
assert isinstance(hex,matplotlib.collections.PolyCollection)
983-
assert isinstance(hex.norm,matplotlib.colors.LogNorm)
982+
hex = ax.hexbin(np.random.rand(10), np.random.rand(10), norm="log", vmin=2, vmax=5)
983+
assert isinstance(hex, matplotlib.collections.PolyCollection)
984+
assert isinstance(hex.norm, matplotlib.colors.LogNorm)
984985
assert hex.norm.vmin == 2
985986
assert hex.norm.vmax == 5
986987

988+
987989
@image_comparison(['hexbin_empty.png'], remove_text=True)
988990
def test_hexbin_empty():
989991
# From #3886: creating hexbin from empty dataset raises ValueError

0 commit comments

Comments
 (0)