Skip to content

Commit a3cad7e

Browse files
committed
DOC: add non-empty docstring to example
1 parent be6b941 commit a3cad7e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: examples/new_patch.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""
2+
Example of directly creating a Patch artist that is defined by a Path
23
"""
34

45
import matplotlib.pyplot as plt
@@ -13,10 +14,6 @@
1314

1415
c = Path.unit_circle()
1516

16-
# x = np.array([0, 0, 0.5, 1, 0])
17-
# y = np.array([0, 1, 1, 0, 0])
18-
# codes = np.array([Path.MOVETO, Path.LINETO, Path.LINETO, Path.LINETO, Path.CLOSEPOLY])
19-
2017
sc = ArrayContainer(None, x=c.vertices[:, 0], y=c.vertices[:, 1], codes=c.codes)
2118
lw2 = Patch(sc, linewidth=3, linestyle=":", edgecolor="C5", alpha=1, hatch=None)
2219

0 commit comments

Comments
 (0)