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

Skip to content

Commit 84a80db

Browse files
committed
Lookup color in backward-compatible way
1 parent 24a680f commit 84a80db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def _get_nth_color(cls, val):
285285
clist = rcParams['axes.color_cycle']
286286
prop_cycler = cycler('color', clist)
287287

288-
colors = prop_cycler.by_key()['color']
288+
colors = prop_cycler._transform['color']
289289
return colors[val % len(colors)]
290290

291291
@classmethod

0 commit comments

Comments
 (0)