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

Function draw_wrapper

lib/matplotlib/artist.py:31–38  ·  view source on GitHub ↗
(artist, renderer, *args, **kwargs)

Source from the content-addressed store, hash-verified

29
30 @wraps(draw)
31 def draw_wrapper(artist, renderer, *args, **kwargs):
32 if renderer._raster_depth == 0 and renderer._rasterizing:
33 # Only stop when we are not in a rasterized parent
34 # and something has been rasterized since last stop.
35 renderer.stop_rasterizing()
36 renderer._rasterizing = False
37
38 return draw(artist, renderer, *args, **kwargs)
39
40 draw_wrapper._supports_rasterization = False
41 return draw_wrapper

Callers

nothing calls this directly

Calls 8

drawFunction · 0.85
stop_rasterizingMethod · 0.45
get_rasterizedMethod · 0.45
start_rasterizingMethod · 0.45
get_agg_filterMethod · 0.45
start_filterMethod · 0.45
stop_filterMethod · 0.45
get_figureMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…