From 9c8a8fca1d57f5bdd49323ecfcf18afdae4175f5 Mon Sep 17 00:00:00 2001 From: Poorvaja Date: Fri, 28 Jun 2024 17:17:01 +0530 Subject: [PATCH] Fix missing capitalization in countplot axis label --- seaborn/categorical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seaborn/categorical.py b/seaborn/categorical.py index ee8aa0908b..6a46a17a40 100644 --- a/seaborn/categorical.py +++ b/seaborn/categorical.py @@ -2669,7 +2669,7 @@ def countplot( p.plot_data[count_axis] = 1 _check_argument("stat", ["count", "percent", "probability", "proportion"], stat) - p.variables[count_axis] = stat + p.variables[count_axis] = stat.capitalize() if stat != "count": denom = 100 if stat == "percent" else 1 p.plot_data[count_axis] /= len(p.plot_data) / denom