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

Method draw_path

lib/matplotlib/patheffects.py:205–212  ·  view source on GitHub ↗

Draw the path with updated gc.

(self, renderer, gc, tpath, affine, rgbFace)

Source from the content-addressed store, hash-verified

203 self._gc = kwargs
204
205 def draw_path(self, renderer, gc, tpath, affine, rgbFace):
206 """Draw the path with updated gc."""
207 gc0 = renderer.new_gc() # Don't modify gc, but a copy!
208 gc0.copy_properties(gc)
209 gc0 = self._update_gc(gc0, self._gc)
210 renderer.draw_path(
211 gc0, tpath, affine + self._offset_transform(renderer), rgbFace)
212 gc0.restore()
213
214
215withStroke = _subclass_with_normal(effect_class=Stroke)

Callers 6

draw_pathMethod · 0.45
draw_pathMethod · 0.45
draw_pathMethod · 0.45
draw_pathMethod · 0.45
draw_pathMethod · 0.45
draw_pathMethod · 0.45

Calls 5

_update_gcMethod · 0.80
_offset_transformMethod · 0.80
new_gcMethod · 0.45
copy_propertiesMethod · 0.45
restoreMethod · 0.45

Tested by

no test coverage detected