From 9668f0630a72705630e534ccfcd2db1ca31d722f Mon Sep 17 00:00:00 2001 From: Ruth Comer <10599679+rcomer@users.noreply.github.com> Date: Tue, 14 Mar 2023 19:13:03 +0000 Subject: [PATCH] Backport PR #25461: Fix issue #25458 by changing "normed" to "density" in documentation --- examples/statistics/histogram_cumulative.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/statistics/histogram_cumulative.py b/examples/statistics/histogram_cumulative.py index 443d30e69ee0..6baedab1a5ce 100644 --- a/examples/statistics/histogram_cumulative.py +++ b/examples/statistics/histogram_cumulative.py @@ -8,11 +8,11 @@ distribution function (CDF) of a sample. We also show the theoretical CDF. A couple of other options to the ``hist`` function are demonstrated. Namely, we -use the *normed* parameter to normalize the histogram and a couple of different -options to the *cumulative* parameter. The *normed* parameter takes a boolean +use the *density* parameter to normalize the histogram and a couple of different +options to the *cumulative* parameter. The *density* parameter takes a boolean value. When ``True``, the bin heights are scaled such that the total area of the histogram is 1. The *cumulative* keyword argument is a little more nuanced. -Like *normed*, you can pass it True or False, but you can also pass it -1 to +Like *density*, you can pass it True or False, but you can also pass it -1 to reverse the distribution. Since we're showing a normalized and cumulative histogram, these curves