Pandas plot with multiple graphs has this standard colors (the first four colors are shown here):
How can I get programmatically these four colors and the following ones?
Pandas plot with multiple graphs has this standard colors (the first four colors are shown here):
How can I get programmatically these four colors and the following ones?
You are referring to category10
color palette:
Programmatically you can access them through:
import matplotlib.pyplot as plt
plt.rcParams['axes.prop_cycle'].by_key()['color']
['#1f77b4',
'#ff7f0e',
'#2ca02c',
'#d62728',
'#9467bd',
'#8c564b',
'#e377c2',
'#7f7f7f',
'#bcbd22',
'#17becf']
See this page of the matplotlib
docs or this SO question for more info.