From adde5e2bcdc794508053c0cbd84541d86e13edbd Mon Sep 17 00:00:00 2001 From: David Stansby Date: Wed, 5 Dec 2018 12:28:16 +0000 Subject: [PATCH] Backport PR #12914: Fix numpydoc formatting --- lib/matplotlib/colorbar.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/matplotlib/colorbar.py b/lib/matplotlib/colorbar.py index 6cedcdeaf880..86c44b7346ba 100644 --- a/lib/matplotlib/colorbar.py +++ b/lib/matplotlib/colorbar.py @@ -166,10 +166,9 @@ Returns ------- -:class:`~matplotlib.colorbar.Colorbar` instance - See also its base class, :class:`~matplotlib.colorbar.ColorbarBase`. - Call the :meth:`~matplotlib.colorbar.ColorbarBase.set_label` method - to label the colorbar. +colorbar : `~matplotlib.colorbar.Colorbar` + See also its base class, `~matplotlib.colorbar.ColorbarBase`. Use + `~.ColorbarBase.set_label` to label the colorbar. Notes -----