From 0729ed05b25571ac281533f33b4995ca634dc861 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Mon, 7 Dec 2020 22:40:19 +0100 Subject: [PATCH] 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`. --- lib/matplotlib/axes/_axes.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 1e97e1d2711a..b069660cfb81 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -6415,10 +6415,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None, Ignored if *histtype* is 'step' or 'stepfilled'. log : bool, default: False - If ``True``, the histogram axis will be set to a log scale. If - *log* is ``True`` and *x* is a 1D array, empty bins will be - filtered out and only the non-empty ``(n, bins, patches)`` - will be returned. + If ``True``, the histogram axis will be set to a log scale. color : color or array-like of colors or None, default: None Color or sequence of colors, one per dataset. Default (``None``)