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

Class PathPatch

lib/matplotlib/patches.py:1096–1121  ·  view source on GitHub ↗

A general polycurve path patch.

Source from the content-addressed store, hash-verified

1094
1095
1096class PathPatch(Patch):
1097 """A general polycurve path patch."""
1098
1099 _edge_default = True
1100
1101 def __str__(self):
1102 s = "PathPatch%d((%g, %g) ...)"
1103 return s % (len(self._path.vertices), *tuple(self._path.vertices[0]))
1104
1105 @_docstring.interpd
1106 def __init__(self, path, **kwargs):
1107 """
1108 *path* is a `.Path` object.
1109
1110 Valid keyword arguments are:
1111
1112 %(Patch:kwdoc)s
1113 """
1114 super().__init__(**kwargs)
1115 self._path = path
1116
1117 def get_path(self):
1118 return self._path
1119
1120 def set_path(self, path):
1121 self._path = path
1122
1123
1124class StepPatch(PathPatch):

Callers 14

test_pathpatch_3dFunction · 0.90
_init_lineMethod · 0.90
__init__Method · 0.90
drawMethod · 0.90
addMethod · 0.90
plot_pathsFunction · 0.90
draw_error_bandFunction · 0.90
image_demo.pyFile · 0.90
text3dFunction · 0.90
dolphin.pyFile · 0.90
compound_path.pyFile · 0.90
demo_text_path.pyFile · 0.90

Calls

no outgoing calls

Tested by 2

test_pathpatch_3dFunction · 0.72
plot_pathsFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…