Answers for "plt.title()"

12

matplotlib title

import matplotlib.pyplot as plt

plt.title('TITLE')
Posted by: Guest on April-17-2020
-1

plt title

import matplotlib.pyplot as plt 
 
plt.plot(x, y, color='green') 
plt.xlabel('x') 
plt.ylabel('y') 
  
# displaying the title
plt.title("Linear graph")
  
plt.show() 
Posted by: Guest on July-09-2021
3

set title matplotlib

import matplotlib.pyplot as plt

fig, axs = plt.subplots(1, 2)
axs[0].set_title('TITLE1')
Posted by: Guest on November-10-2020

Python Answers by Framework

Browse Popular Code Answers by Language