Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pandas set font size plot

plt.figure()
plt.rcParams.update({'font.size': 22}) # must set in top

ax1 = df_plot.plot(x='wind_direct',y=plot_columns,figsize=(30,18),linewidth=5,kind='line',legend=True, fontsize=16)
ax1.legend(loc=2,fontsize=20)
ax1.set_ylabel('kw',fontdict={'fontsize':24})
ax2 = ax1.twinx()
ax3 = df_plot.plot(x='wind_direct',y=counts_columns,figsize=(30,18),kind='bar',legend=True, ax=ax2, fontsize=16)
ax3.set_title(title,pad=20, fontdict={'fontsize':24})
ax3.set_ylabel('counts',fontdict={'fontsize':24})
ax3.legend(loc=1,fontsize=20);
Comment

PREVIOUS NEXT
Code Example
Python :: python requests.get pdf An appropriate representation of the requested resource could not be found 
Python :: downgrade pip 
Python :: python printing date 
Python :: python first two numbers 
Python :: click js selenium python 
Python :: python how to get script directory 
Python :: how to dynamically access class properties in python 
Python :: opening image in python 
Python :: seaborn set title 
Python :: rename the console python 
Python :: display text in pygame 
Python :: oddlyspecific09123890183019283 
Python :: get object attributes python 
Python :: get max pixel value python 
Python :: call parent function init python 
Python :: identity matrix in python 
Python :: python sorted descending 
Python :: set seed python 
Python :: stringf replcae in python 
Python :: python get base directory 
Python :: dict to bytes python 
Python :: difference between two dates in days python 
Python :: python get num classes from label encoder 
Python :: resample and replace with mean in python 
Python :: remove every file that ends with extension in python 
Python :: python program to convert tuple into string 
Python :: how to input multiple integers in python 
Python :: undefie int value python 
Python :: assert len(lex) < self.bucket_specs[-1][1] 
Python :: django create app 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =