MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / PathPatch

Class PathPatch

site-packages/matplotlib/patches.py:880–908  ·  view source on GitHub ↗

A general polycurve path patch.

Source from the content-addressed store, hash-verified

878
879
880class PathPatch(Patch):
881 """
882 A general polycurve path patch.
883 """
884 _edge_default = True
885
886 def __str__(self):
887 s = "PathPatch%d((%g, %g) ...)"
888 return s % (len(self._path.vertices), *tuple(self._path.vertices[0]))
889
890 @docstring.dedent_interpd
891 def __init__(self, path, **kwargs):
892 """
893 *path* is a :class:`matplotlib.path.Path` object.
894
895 Valid kwargs are:
896 %(Patch)s
897
898 .. seealso::
899
900 :class:`Patch`
901 For additional kwargs
902
903 """
904 Patch.__init__(self, **kwargs)
905 self._path = path
906
907 def get_path(self):
908 return self._path
909
910
911class Polygon(Patch):

Callers 4

image_demo.pyFile · 0.90
_add_endsMethod · 0.90
__init__Method · 0.90
addMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected