8000 fix attribute error · matplotlib/matplotlib@4f872b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f872b9

Browse files
committed
fix attribute error
1 parent 655f243 commit 4f872b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/collections.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,8 @@ def _get_default_facecolor(self):
14751475
def set_alpha(self, alpha):
14761476
# docstring inherited
14771477
super().set_alpha(alpha)
1478-
self.set_gapcolor(self._original_gapcolor)
1478+
if self._gapcolor is not None:
1479+
self.set_gapcolor(self._original_gapcolor)
14791480

14801481
def set_color(self, c):
14811482
"""

0 commit comments

Comments
 (0)
0