Skip to content

Commit 0729ed0

Browse files
committed
Remove incorrect statement about hist(..., log=True).
We don't remove zero-count patches, as can easily be checked with e.g. `print(hist([0, 0, 0, 10], 10, log=True))`. The incorrect statement came in in f24d06c, but it is clear that that patch did not implement that behavior, instead filtering out such patches in `_update_patch_limits`.
1 parent ff15ca9 commit 0729ed0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6415,10 +6415,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
64156415
Ignored if *histtype* is 'step' or 'stepfilled'.
64166416
64176417
log : bool, default: False
6418-
If ``True``, the histogram axis will be set to a log scale. If
6419-
*log* is ``True`` and *x* is a 1D array, empty bins will be
6420-
filtered out and only the non-empty ``(n, bins, patches)``
6421-
will be returned.
6418+
If ``True``, the histogram axis will be set to a log scale.
64226419
64236420
color : color or array-like of colors or None, default: None
64246421
Color or sequence of colors, one per dataset. Default (``None``)

0 commit comments

Comments
 (0)