From af10a6b4cc86d071a02f33d03f8c8fd7d23bba72 Mon Sep 17 00:00:00 2001 From: Viraj Mohile Date: Thu, 28 Feb 2019 21:28:47 +0530 Subject: [PATCH 1/2] Modified docstring of the set_ylabel and set_xlabel methods --- lib/matplotlib/axes/_axes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 415d03f93524..6ce7f4c48e27 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -206,7 +206,7 @@ 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 +238,7 @@ 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 ---------------- From 539d8b88f220b37d61a124b2806f6739590199d7 Mon Sep 17 00:00:00 2001 From: Viraj Mohile Date: Fri, 1 Mar 2019 00:56:49 +0530 Subject: [PATCH 2/2] Update _axes.py --- 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 bfe1c301ca27..a9144190f0bd 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 from the axes bounding box including ticks and tick labels. + 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 from the axes bounding box including ticks and tick labels. + Spacing in points from the axes bounding box including ticks + and tick labels. Other Parameters ----------------