|
194 | 194 | _colormap_kw_doc)) |
195 | 195 |
|
196 | 196 |
|
197 | | -@_api.caching_module_getattr # module-level deprecations |
198 | | -class __getattr__: |
199 | | - colorbar_doc = _api.deprecated("3.4", obj_type="")(property( |
200 | | - lambda self: docstring.interpd.params["colorbar_doc"])) |
201 | | - colorbar_kw_doc = _api.deprecated("3.4", obj_type="")(property( |
202 | | - lambda self: _colormap_kw_doc)) |
203 | | - make_axes_kw_doc = _api.deprecated("3.4", obj_type="")(property( |
204 | | - lambda self: _make_axes_param_doc + _make_axes_other_param_doc)) |
205 | | - |
206 | | - |
207 | 197 | def _set_ticks_on_axis_warn(*args, **kwargs): |
208 | 198 | # a top level function which gets put in at the axes' |
209 | 199 | # set_xticks and set_yticks by Colorbar.__init__. |
@@ -1587,36 +1577,3 @@ def make_axes_gridspec(parent, *, location=None, orientation=None, |
1587 | 1577 | aspect=aspect0, |
1588 | 1578 | pad=pad) |
1589 | 1579 | return cax, kwargs |
1590 | | - |
1591 | | - |
1592 | | -@_api.deprecated("3.4", alternative="Colorbar") |
1593 | | -class ColorbarPatch(Colorbar): |
1594 | | - pass |
1595 | | - |
1596 | | - |
1597 | | -@_api.deprecated("3.4", alternative="Colorbar") |
1598 | | -def colorbar_factory(cax, mappable, **kwargs): |
1599 | | - """ |
1600 | | - Create a colorbar on the given axes for the given mappable. |
1601 | | -
|
1602 | | - .. note:: |
1603 | | - This is a low-level function to turn an existing axes into a colorbar |
1604 | | - axes. Typically, you'll want to use `~.Figure.colorbar` instead, which |
1605 | | - automatically handles creation and placement of a suitable axes as |
1606 | | - well. |
1607 | | -
|
1608 | | - Parameters |
1609 | | - ---------- |
1610 | | - cax : `~matplotlib.axes.Axes` |
1611 | | - The `~.axes.Axes` to turn into a colorbar. |
1612 | | - mappable : `~matplotlib.cm.ScalarMappable` |
1613 | | - The mappable to be described by the colorbar. |
1614 | | - **kwargs |
1615 | | - Keyword arguments are passed to the respective colorbar class. |
1616 | | -
|
1617 | | - Returns |
1618 | | - ------- |
1619 | | - `.Colorbar` |
1620 | | - The created colorbar instance. |
1621 | | - """ |
1622 | | - return Colorbar(cax, mappable, **kwargs) |
0 commit comments