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

Method redraw_in_frame

lib/matplotlib/axes/_base.py:3362–3370  ·  view source on GitHub ↗

Efficiently redraw Axes data, but not axis ticks, labels, etc.

(self)

Source from the content-addressed store, hash-verified

3360 a.draw(self.get_figure(root=True).canvas.get_renderer())
3361
3362 def redraw_in_frame(self):
3363 """
3364 Efficiently redraw Axes data, but not axis ticks, labels, etc.
3365 """
3366 with ExitStack() as stack:
3367 for artist in [*self._axis_map.values(),
3368 self.title, self._left_title, self._right_title]:
3369 stack.enter_context(artist._cm_set(visible=False))
3370 self.draw(self.get_figure(root=True).canvas.get_renderer())
3371
3372 # Axes rectangle characteristics
3373

Callers 1

test_redraw_in_frameFunction · 0.80

Calls 5

drawMethod · 0.95
valuesMethod · 0.80
_cm_setMethod · 0.80
get_rendererMethod · 0.45
get_figureMethod · 0.45

Tested by 1

test_redraw_in_frameFunction · 0.64