We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b637f41 commit 281b09dCopy full SHA for 281b09d
1 file changed
lib/matplotlib/tests/test_axes.py
@@ -901,6 +901,14 @@ def test_hexbin_empty():
901
ax.hexbin([], [])
902
903
904
+@image_comparison(['hexbin_empty.png'], remove_text=True)
905
+def test_hexbin_log_empty():
906
+ # From #23922: creating hexbin with log scaling from empty
907
+ # dataset raises ValueError
908
+ ax = plt.gca()
909
+ ax.hexbin([], [], bins='log')
910
+
911
912
def test_hexbin_pickable():
913
# From #1973: Test that picking a hexbin collection works
914
fig, ax = plt.subplots()
0 commit comments