Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit df94d8a

Browse filesBrowse files
author
Clement Gilli
committed
fix linter
1 parent 98f30b8 commit df94d8a
Copy full SHA for df94d8a

File tree

1 file changed

+5
-3
lines changed
Filter options

1 file changed

+5
-3
lines changed

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+5-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.