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

Method draw_path

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

Source from the content-addressed store, hash-verified

688 [b'M', b'L', b'Q', b'C', b'z'], False).decode('ascii')
689
690 def draw_path(self, gc, path, transform, rgbFace=None):
691 # docstring inherited
692 trans_and_flip = self._make_flip_transform(transform)
693 clip = (rgbFace is None and gc.get_hatch_path() is None)
694 simplify = path.should_simplify and clip
695 path_data = self._convert_path(
696 path, trans_and_flip, clip=clip, simplify=simplify,
697 sketch=gc.get_sketch_params())
698
699 if gc.get_url() is not None:
700 self.writer.start('a', {'xlink:href': gc.get_url(), 'target': '_blank'})
701 self.writer.element('path', d=path_data, **self._get_clip_attrs(gc),
702 style=self._get_style(gc, rgbFace))
703 if gc.get_url() is not None:
704 self.writer.end('a')
705
706 def draw_markers(
707 self, gc, marker_path, marker_trans, path, trans, rgbFace=None):

Callers

nothing calls this directly

Calls 10

_make_flip_transformMethod · 0.95
_convert_pathMethod · 0.95
_get_clip_attrsMethod · 0.95
_get_styleMethod · 0.95
get_hatch_pathMethod · 0.80
elementMethod · 0.80
get_sketch_paramsMethod · 0.45
get_urlMethod · 0.45
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected