A general polycurve path patch.
| 878 | |
| 879 | |
| 880 | class 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 | |
| 911 | class Polygon(Patch): |
no outgoing calls
no test coverage detected