From 0d6e044de3ff0b96d47cc7e92fb6e01568dc6922 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Fri, 1 Mar 2019 11:47:13 +0000 Subject: [PATCH] Backport PR #13546: Modified docstring of the set_ylabel and set_xlabel --- lib/matplotlib/axes/_axes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index c074ffc43e05..676c4863a082 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -206,7 +206,8 @@ def set_xlabel(self, xlabel, fontdict=None, labelpad=None, **kwargs): The label text. labelpad : scalar, optional, default: None - Spacing in points between the label and the x-axis. + Spacing in points from the axes bounding box including ticks + and tick labels. Other Parameters ---------------- @@ -238,7 +239,8 @@ def set_ylabel(self, ylabel, fontdict=None, labelpad=None, **kwargs): The label text. labelpad : scalar, optional, default: None - Spacing in points between the label and the y-axis. + Spacing in points from the axes bounding box including ticks + and tick labels. Other Parameters ----------------