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 -----