Skip to content

Commit 7dcc0f7

Browse files
committed
DOC: fix docstring
1 parent 73a56bd commit 7dcc0f7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Diff for: examples/new_patch.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
"""
2-
Example of directly creating a Patch artist that is defined by a Path
2+
======
3+
Circle
4+
======
5+
6+
Example of directly creating a Patch artist that is defined by a
7+
x, y, and path codes.
8+
9+
310
"""
411

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

2027
fig, nax = plt.subplots()
28+
nax.set_aspect('equal')
2129
ax = CompatibilityAxes(nax)
2230
nax.add_artist(ax)
2331
ax.add_artist(lw2, 2)
24-
ax.set_xlim(0, np.pi * 4)
32+
ax.set_xlim(-1.1, 1.1)
2533
ax.set_ylim(-1.1, 1.1)
2634

2735
plt.show()

0 commit comments

Comments
 (0)