|
140 | 140 | colorbar(mappable, cax=cax, **kwargs)
|
141 | 141 | colorbar(mappable, ax=ax, **kwargs)
|
142 | 142 |
|
143 |
| -arguments: |
144 |
| -
|
145 |
| - *mappable* |
146 |
| - the :class:`~matplotlib.image.Image`, |
| 143 | +Parameters |
| 144 | +---------- |
| 145 | +mappable : |
| 146 | + The :class:`~matplotlib.image.Image`, |
147 | 147 | :class:`~matplotlib.contour.ContourSet`, etc. to
|
148 |
| - which the colorbar applies; this argument is mandatory for the |
| 148 | + which the colorbar applies; this argument is mandatory for the Figure |
149 | 149 | :meth:`~matplotlib.figure.Figure.colorbar` method but optional for the
|
150 |
| - :func:`~matplotlib.pyplot.colorbar` function, which sets the |
| 150 | + pyplot :func:`~matplotlib.pyplot.colorbar` function, which sets the |
151 | 151 | default to the current image.
|
152 | 152 |
|
153 |
| -keyword arguments: |
154 |
| -
|
155 |
| - *cax* |
156 |
| - None | axes object into which the colorbar will be drawn |
157 |
| - *ax* |
158 |
| - None | parent axes object(s) from which space for a new |
159 |
| - colorbar axes will be stolen. If a list of axes is given |
160 |
| - they will all be resized to make room for the colorbar axes. |
161 |
| - *use_gridspec* |
162 |
| - False | If *cax* is None, a new *cax* is created as an instance of |
163 |
| - Axes. If *ax* is an instance of Subplot and *use_gridspec* is True, |
| 153 | +cax : :class:`~matplotlib.axes.Axes` object, optional |
| 154 | + Axis into which the colorbar will be drawn |
| 155 | +
|
| 156 | +ax : :class:`~matplotlib.axes.Axes`, list of Axes, optional |
| 157 | + Parent axes from which space for a new colorbar axes will be stolen. |
| 158 | + If a list of axes is given they will all be resized to make room for the |
| 159 | + colorbar axes. |
| 160 | +
|
| 161 | +use_gridspec : bool, optional |
| 162 | + If *cax* is ``None``, a new *cax* is created as an instance of |
| 163 | + Axes. If *ax* is an instance of Subplot and *use_gridspec* is ``True``, |
164 | 164 | *cax* is created as an instance of Subplot using the
|
165 | 165 | grid_spec module.
|
166 | 166 |
|
167 | 167 |
|
| 168 | +Returns |
| 169 | +------- |
| 170 | +:class:`~matplotlib.colorbar.Colorbar` instance |
| 171 | + See also its base class, :class:`~matplotlib.colorbar.ColorbarBase`. |
| 172 | + Call the :meth:`~matplotlib.colorbar.ColorbarBase.set_label` method |
| 173 | + to label the colorbar. |
| 174 | +
|
| 175 | +Notes |
| 176 | +----- |
168 | 177 | Additional keyword arguments are of two kinds:
|
169 | 178 |
|
170 | 179 | axes properties:
|
|
196 | 205 | with semi transparent images (alpha < 1) and colorbar extensions and is not
|
197 | 206 | enabled by default see (issue #1188).
|
198 | 207 |
|
199 |
| -returns: |
200 |
| - :class:`~matplotlib.colorbar.Colorbar` instance; see also its base class, |
201 |
| - :class:`~matplotlib.colorbar.ColorbarBase`. Call the |
202 |
| - :meth:`~matplotlib.colorbar.ColorbarBase.set_label` method |
203 |
| - to label the colorbar. |
204 |
| -
|
205 | 208 | ''' % (make_axes_kw_doc, colormap_kw_doc)
|
206 | 209 |
|
207 | 210 | docstring.interpd.update(colorbar_doc=colorbar_doc)
|
|
0 commit comments