|
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__. |
@@ -1591,36 +1581,3 @@ def make_axes_gridspec(parent, *, location=None, orientation=None, |
1591 | 1581 | pad=pad) |
1592 | 1582 |
|
1593 | 1583 | return cax, kwargs |
1594 | | - |
1595 | | - |
1596 | | -@_api.deprecated("3.4", alternative="Colorbar") |
1597 | | -class ColorbarPatch(Colorbar): |
1598 | | - pass |
1599 | | - |
1600 | | - |
1601 | | -@_api.deprecated("3.4", alternative="Colorbar") |
1602 | | -def colorbar_factory(cax, mappable, **kwargs): |
1603 | | - """ |
1604 | | - Create a colorbar on the given axes for the given mappable. |
1605 | | -
|
1606 | | - .. note:: |
1607 | | - This is a low-level function to turn an existing axes into a colorbar |
1608 | | - axes. Typically, you'll want to use `~.Figure.colorbar` instead, which |
1609 | | - automatically handles creation and placement of a suitable axes as |
1610 | | - well. |
1611 | | -
|
1612 | | - Parameters |
1613 | | - ---------- |
1614 | | - cax : `~matplotlib.axes.Axes` |
1615 | | - The `~.axes.Axes` to turn into a colorbar. |
1616 | | - mappable : `~matplotlib.cm.ScalarMappable` |
1617 | | - The mappable to be described by the colorbar. |
1618 | | - **kwargs |
1619 | | - Keyword arguments are passed to the respective colorbar class. |
1620 | | -
|
1621 | | - Returns |
1622 | | - ------- |
1623 | | - `.Colorbar` |
1624 | | - The created colorbar instance. |
1625 | | - """ |
1626 | | - return Colorbar(cax, mappable, **kwargs) |
0 commit comments