The default axis colour cycle in Matplotlib 2.0 is called tab10:
I want to use a different qualitative colour cycle, such as tab20c:
I have used this code to change the default axis colour cycle:
import matplotlib.pyplot as plt
from cycler import cycler
c = plt.get_cmap('tab20c').colors
plt.rcParams['axes.prop_cycle'] = cycler(color=c)
This looks pretty dirty to me. Is there a better way?


ax.set_color_cycle('tab10')File "\AppData\Local\Continuum\Anaconda3\lib\site-packages\matplotlib\rcsetup.py", line 395, in validate_color if s.find(',') >= 0: AttributeError: 'dict' object has no attribute 'find'ax.set_prop_cycle(cycler(color=plt.get_cmap('tab20c').colors))