-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Description
The edge path of the RegularPolygon
does not get closed properly if fill=False
:
from matplotlib.patches import RegularPolygon
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.set_aspect('equal')
poly = RegularPolygon(
xy=(0, 0),
radius=10,
numVertices=6,
fill=False,
linewidth=5,
)
ax.add_artist(poly)
ax.set_xlim(-11, 11)
ax.set_ylim(-11, 11)
fig.savefig('test_poly.pdf')
Metadata
Metadata
Assignees
Labels
No labels