import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(12,8))
for key in dct.keys():
plt.plot(*zip(*dct.get(key)), label=key)
ax.set_xticks(range(0,24))
ax.grid(color='gray', linestyle='-', linewidth=0.5)
plt.xlabel('x')
plt.ylabel('y')
plt.title('title')
plt.legend(loc=0,fontsize='small')
fig.show()
I generate a matplotlib linechart in a for loop, getting a total of 20 lines (one for each item of my dictionary, which are lists). The problem is that, having 20 lines, the assigned colors are way too similar: it seems to me like, after 10 items, the color schemes repeats itself and the following 10 items are of the same colors.
How can I change the color scheme to have different enough colors?