Skip to content

Commit

Permalink
DOC: add non-empty docstring to example
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell committed Aug 2, 2024
1 parent be6b941 commit a3cad7e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/new_patch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""
Example of directly creating a Patch artist that is defined by a Path
"""

import matplotlib.pyplot as plt
Expand All @@ -13,10 +14,6 @@

c = Path.unit_circle()

# x = np.array([0, 0, 0.5, 1, 0])
# y = np.array([0, 1, 1, 0, 0])
# codes = np.array([Path.MOVETO, Path.LINETO, Path.LINETO, Path.LINETO, Path.CLOSEPOLY])

sc = ArrayContainer(None, x=c.vertices[:, 0], y=c.vertices[:, 1], codes=c.codes)
lw2 = Patch(sc, linewidth=3, linestyle=":", edgecolor="C5", alpha=1, hatch=None)

Expand Down

0 comments on commit a3cad7e

Please sign in to comment.