View difference between Paste ID: 7ZX7JM2Z and 6Jma8RY1
SHOW: | | - or go back to the newest paste.
1
mycolors = ['tab:red', 'tab:blue', 'tab:green', 'tab:orange', 'tab:brown', 'tab:grey', 'tab:pink', 'tab:olive', 'deeppink', 'steelblue']
2
months = ['январь','февраль','март','апрель','май','июнь','июль','август','сентябрь','октябрь']
3
plt.figure(figsize=(16,10), dpi= 80)
4
plt.xlabel('day of month', fontsize=14)
5
plt.ylabel('price', fontsize=14)
6
lines = []
7
for i, y in enumerate(df['silver'].groupby(pd.Grouper(freq='M'))):
8
    p,=plt.plot(range(len(y[1])),y[1], color=mycolors[i], label=months[i])
9
    lines.append(p)
10
plt.legend(handles=lines)