Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f4346b5

Browse filesBrowse files
authored
Merge pull request #30069 from jkseppan/close-star
Close star polygons
2 parents 35c5481 + 8912bbe commit f4346b5
Copy full SHA for f4346b5

File tree

4 files changed

+147
-135
lines changed
Filter options

4 files changed

+147
-135
lines changed

‎lib/matplotlib/hatch.py

Copy file name to clipboardExpand all lines: lib/matplotlib/hatch.py
+1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.