Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mycolors = ['tab:red', 'tab:blue', 'tab:green', 'tab:orange', 'tab:brown', 'tab:grey', 'tab:pink', 'tab:olive', 'deeppink', 'steelblue']
- months = ['январь','февраль','март','апрель','май','июнь','июль','август','сентябрь','октябрь']
- plt.figure(figsize=(16,10), dpi= 80)
- plt.xlabel('day of month', fontsize=14)
- plt.ylabel('price', fontsize=14)
- lines = []
- for i, y in enumerate(df['silver'].groupby(pd.Grouper(freq='M'))):
- p,=plt.plot(range(len(y[1])),y[1], color=mycolors[i], label=months[i])
- lines.append(p)
- plt.legend(handles=lines)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement