pandas set font size plot

Solutions on MaxInterview for pandas set font size plot by the best coders in the world

showing results for - "pandas set font size plot"
Guillaume
29 Jan 2016
1plt.figure()
2plt.rcParams.update({'font.size': 22}) # must set in top
3
4ax1 = df_plot.plot(x='wind_direct',y=plot_columns,figsize=(30,18),linewidth=5,kind='line',legend=True, fontsize=16)
5ax1.legend(loc=2,fontsize=20)
6ax1.set_ylabel('kw',fontdict={'fontsize':24})
7ax2 = ax1.twinx()
8ax3 = df_plot.plot(x='wind_direct',y=counts_columns,figsize=(30,18),kind='bar',legend=True, ax=ax2, fontsize=16)
9ax3.set_title(title,pad=20, fontdict={'fontsize':24})
10ax3.set_ylabel('counts',fontdict={'fontsize':24})
11ax3.legend(loc=1,fontsize=20);
12