Skip to content

Commit

Permalink
DOC: fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
tacaswell committed Aug 2, 2024
1 parent 73a56bd commit 7dcc0f7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions examples/new_patch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
"""
Example of directly creating a Patch artist that is defined by a Path
======
Circle
======
Example of directly creating a Patch artist that is defined by a
x, y, and path codes.
"""

import matplotlib.pyplot as plt
Expand All @@ -18,10 +25,11 @@
lw2 = Patch(sc, linewidth=3, linestyle=":", edgecolor="C5", alpha=1, hatch=None)

fig, nax = plt.subplots()
nax.set_aspect('equal')
ax = CompatibilityAxes(nax)
nax.add_artist(ax)
ax.add_artist(lw2, 2)
ax.set_xlim(0, np.pi * 4)
ax.set_xlim(-1.1, 1.1)
ax.set_ylim(-1.1, 1.1)

plt.show()

0 comments on commit 7dcc0f7

Please sign in to comment.