Skip to content

Navigation Menu

Sign in
Appearance settings

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 3590ce2

Browse filesBrowse files
authored
Merge pull request #6697 from Kojoley/fix-path-cache-in-unit_regular_star
FIX: path caching bug in `Path.unit_regular_star` Was reading from and writing to different caches
2 parents 5dfe000 + 1b80a5c commit 3590ce2
Copy full SHA for 3590ce2

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/path.py

Copy file name to clipboardExpand all lines: lib/matplotlib/path.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def unit_regular_star(cls, numVertices, innerCircle=0.5):
684684
codes[-1] = cls.CLOSEPOLY
685685
path = cls(verts, codes, readonly=True)
686686
if numVertices <= 16:
687-
cls._unit_regular_polygons[(numVertices, innerCircle)] = path
687+
cls._unit_regular_stars[(numVertices, innerCircle)] = path
688688
return path
689689

690690
@classmethod

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.