8000 Close star polygons · matplotlib/matplotlib@991ee94 · GitHub
[go: up one dir, main page]

Skip to content

Commit 991ee94

Browse files
committed
Close star polygons
When '*' hatching was used and you zoomed in (especially in vector formats) you see that the top of the star was not joined quite right. Using closepoly as the last operation fixes this.
1 parent 759765c commit 991ee94

File tree

5 files changed

+693
-0
lines changed

5 files changed

+693
-0
lines changed

lib/matplotlib/hatch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def __init__(self, hatch, density):
182182
self.shape_codes = np.full(len(self.shape_vertices), Path.LINETO,
183183
dtype=Path.code_type)
184184
self.shape_codes[0] = Path.MOVETO
185+
self.shape_codes[-1] = Path.CLOSEPOLY
185186
super().__init__(hatch, density)
186187

187188
_hatch_types = [
Binary file not shown.
Loading

0 commit comments

Comments
 (0)
0