Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python add titles to subplots

fig = plt.figure()
ax1 = fig.add_subplot(221)
ax2 = fig.add_subplot(222)
ax3 = fig.add_subplot(223)
ax4 = fig.add_subplot(224)
ax1.title.set_text('First Plot')
ax2.title.set_text('Second Plot')
ax3.title.set_text('Third Plot')
ax4.title.set_text('Fourth Plot')
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: python time a funciton 
Python :: converting string array to int array python 
Python :: find duplicated rows with respect to multiple columns pandas 
Python :: Show the records that have nan values 
Python :: display max rows pandas 
Python :: to extract out only year month from a date column in pandas 
Python :: get current month py 
Python :: plot categorical data matplotlib 
Python :: pandas drop empty rows 
Python :: python calc days between dates 
Python :: dictionaries to http data python 
Python :: python get dir 
Python :: how to find the calendar week python 
Python :: series has no attirubte reshape python 
Python :: df select rows based on condition 
Python :: List comprehension - list files with extension in a directory 
Python :: python format currency 
Python :: remove x label matplotlib 
Python :: matplotlib background color 
Python :: python month number from date 
Python :: pygame render text 
Python :: postgres python 
Python :: string array to float array python 
Python :: pandas not is na 
Python :: python file extension 
Python :: install python decouple 
Python :: python roll a die 
Python :: plt.xlabel not working 
Python :: input stdin python 
Python :: function as parameter tpye hinting python 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =