Skip to content

Commit ef4aed5

Browse files
committed
MNT: use public cyler API
- _transpose() -> by_key() - be pedantic about return types
1 parent 9c61a9d commit ef4aed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def to_rgba(c, alpha=None):
127127
if _is_nth_color(c):
128128
from matplotlib import rcParams
129129
prop_cycler = rcParams['axes.prop_cycle']
130-
colors = prop_cycler._transpose().get('color', 'k')
130+
colors = prop_cycler.by_key().get('color', ['k'])
131131
c = colors[int(c[1]) % len(colors)]
132132
try:
133133
rgba = _colors_full_map.cache[c, alpha]

0 commit comments

Comments
 (0)