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

Method draw_without_rendering

lib/matplotlib/figure.py:3291–3298  ·  view source on GitHub ↗

Draw the figure with no output. Useful to get the final size of artists that require a draw before their size is known (e.g. text).

(self)

Source from the content-addressed store, hash-verified

3289 DrawEvent("draw_event", self.canvas, renderer)._process()
3290
3291 def draw_without_rendering(self):
3292 """
3293 Draw the figure with no output. Useful to get the final size of
3294 artists that require a draw before their size is known (e.g. text).
3295 """
3296 renderer = _get_renderer(self)
3297 with renderer._draw_disabled():
3298 self.draw(renderer)
3299
3300 def draw_artist(self, a):
3301 """

Callers 15

_no_output_drawFunction · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
test_date_emptyFunction · 0.80
test_offset_changesFunction · 0.80
test_axis_not_in_layoutFunction · 0.80
test_tick_not_in_layoutFunction · 0.80
_test_cached_rendererFunction · 0.80

Calls 3

drawMethod · 0.95
_get_rendererFunction · 0.90
_draw_disabledMethod · 0.80

Tested by 15

test_date_emptyFunction · 0.64
test_offset_changesFunction · 0.64
test_axis_not_in_layoutFunction · 0.64
test_tick_not_in_layoutFunction · 0.64
_test_cached_rendererFunction · 0.64
test_mappable_2d_alphaFunction · 0.64
test_aspectsFunction · 0.64
test_offset_text_locFunction · 0.64