Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3590ce2

Browse 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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/path.py

Lines 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)