Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

set font size xaxis pandas

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 :: how to code a clickable button in python 
Python :: Function to a button in tkinter 
Python :: python get args 
Python :: how to create a object in djago views model 
Python :: loop through groupby pandas 
Python :: print time python 
Python :: pyqt5 wait cursor 
Python :: where my python modules in linux 
Python :: sns lineplot title 
Python :: python method to filter vowels in a string 
Python :: plt.xlabel not working 
Python :: py check discord token 
Python :: stop a subprocess python 
Python :: python xor two bytes 
Python :: require http method django view 
Python :: how to print whole year calendar in python 
Python :: create folders in python 
Python :: pairplot size 
Python :: token_obtain_pair check email 
Python :: pil to rgb 
Python :: check the input format of a date python 
Python :: python get domain from url 
Python :: equivalent of ament_index_python in noetic 
Python :: pandas resample backfill 
Python :: nltk download without print 
Python :: change title size matplotlib 
Python :: how to convert async function to sync function in python 
Python :: graphics in python in repl 
Python :: neural network without training return same output with random biases 
Python :: python calling dynamic function on object 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =