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

Method draw_path

lib/matplotlib/backends/backend_wx.py:195–208  ·  view source on GitHub ↗
(self, gc, path, transform, rgbFace=None)

Source from the content-addressed store, hash-verified

193 return wxpath
194
195 def draw_path(self, gc, path, transform, rgbFace=None):
196 # docstring inherited
197 gc.select()
198 self.handle_clip_rectangle(gc)
199 gfx_ctx = gc.gfx_ctx
200 transform = transform + \
201 Affine2D().scale(1.0, -1.0).translate(0.0, self.height)
202 wxpath = self.convert_path(gfx_ctx, path, transform)
203 if rgbFace is not None:
204 gfx_ctx.SetBrush(wx.Brush(gc.get_wxcolour(rgbFace)))
205 gfx_ctx.DrawPath(wxpath)
206 else:
207 gfx_ctx.StrokePath(wxpath)
208 gc.unselect()
209
210 def draw_image(self, gc, x, y, im):
211 bbox = gc.get_clip_rectangle()

Callers

nothing calls this directly

Calls 8

handle_clip_rectangleMethod · 0.95
convert_pathMethod · 0.95
Affine2DClass · 0.90
selectMethod · 0.80
translateMethod · 0.80
get_wxcolourMethod · 0.80
unselectMethod · 0.80
scaleMethod · 0.45

Tested by

no test coverage detected