MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _remove_cbar_axes

Function _remove_cbar_axes

lib/matplotlib/colorbar.py:198–206  ·  view source on GitHub ↗

Replacement remove method for a colorbar's axes, so that the colorbar is properly removed. Note we define this at the module level to preserve pickling. A lambda or local def within the Colorbar.__init__ method will not work.

(ax, cbar)

Source from the content-addressed store, hash-verified

196
197
198def _remove_cbar_axes(ax, cbar):
199 """
200 Replacement remove method for a colorbar's axes, so that the colorbar is
201 properly removed.
202
203 Note we define this at the module level to preserve pickling. A lambda or
204 local def within the Colorbar.__init__ method will not work.
205 """
206 cbar.remove()
207
208
209@_docstring.interpd

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…