Thanks to visit codestin.com Credit goes to github.com
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 e34642d commit c941e69Copy full SHA for c941e69
3 files changed
doc/api/next_api_changes/behavior/21038-DS.rst
@@ -0,0 +1,4 @@
1
+hexbin with a log norm
2
+----------------------
3
+`~.axes.Axes.hexbin` no longer (incorrectly) adds 1 to every bin value if a
4
+log norm is being used.
lib/matplotlib/axes/_axes.py
@@ -4803,11 +4803,6 @@ def reduce_C_function(C: array) -> float
4803
vmin = vmax = None
4804
bins = None
4805
4806
- if isinstance(norm, mcolors.LogNorm):
4807
- if (accum == 0).any():
4808
- # make sure we have no zeros
4809
- accum += 1
4810
-
4811
# autoscale the norm with current accum values if it hasn't
4812
# been set
4813
if norm is not None:
lib/matplotlib/tests/baseline_images/test_axes/hexbin_log.png
11.9 KB
0 commit comments