From 1b80a5c26b71df01044884a9336ba6310836a4b8 Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Wed, 6 Jul 2016 16:18:47 +0300 Subject: [PATCH] Fixed path caching bug in `Path.unit_regular_star` --- lib/matplotlib/path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/path.py b/lib/matplotlib/path.py index 82edb93fc98..17f3ee0de33 100644 --- a/lib/matplotlib/path.py +++ b/lib/matplotlib/path.py @@ -684,7 +684,7 @@ def unit_regular_star(cls, numVertices, innerCircle=0.5): codes[-1] = cls.CLOSEPOLY path = cls(verts, codes, readonly=True) if numVertices <= 16: - cls._unit_regular_polygons[(numVertices, innerCircle)] = path + cls._unit_regular_stars[(numVertices, innerCircle)] = path return path @classmethod