Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88c285e

Browse files
committed
More colorbar docstring improvements.
svn path=/trunk/matplotlib/; revision=6104
1 parent 0e260f6 commit 88c285e

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

lib/matplotlib/colorbar.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@
104104
arguments:
105105
106106
*mappable*
107-
the :class:`matplotlib.image.Image`,
108-
:class:`matplotlib.contour.ContourSet`, etc. to
107+
the :class:`~matplotlib.image.Image`,
108+
:class:`~matplotlib.contour.ContourSet`, etc. to
109109
which the colorbar applies; this argument is mandatory for the
110-
:meth:`matplotlib.figure.Figure.colorbar` method but optional for the
111-
:func:`matplotlib.pyplot.colorbar` function, which sets the
110+
:meth:`~matplotlib.figure.Figure.colorbar` method but optional for the
111+
:func:`~matplotlib.pyplot.colorbar` function, which sets the
112112
default to the current image.
113113
114114
keyword arguments:
@@ -141,9 +141,10 @@
141141
this case, do not use any of the axes properties kwargs.
142142
143143
returns:
144-
:class:`Colorbar` instance; see also its base class,
145-
:class:`ColorbarBase`. Call the :meth:`set_label` method
146-
to label the colorbar
144+
:class:`~matplotlib.colorbar.Colorbar` instance; see also its base class,
145+
:class:`~matplotlib.colorbar.ColorbarBase`. Call the
146+
:meth:`~matplotlib.colorbar.ColorbarBase.set_label` method
147+
to label the colorbar.
147148
148149
''' % (make_axes_kw_doc, colormap_kw_doc)
149150

0 commit comments

Comments
 (0)