April 2018
Beginner to intermediate
300 pages
7h 34m
English
We can add text to our plot by calling plt.text(x,y,text); we specify the x and y coordinates and the text string. Here is a quick example:
plt.text(0.25,0.5,'Hello World!',fontsize=30)plt.show()
You can see in this figure the Hello World! message appearing in the center of the plot:

Read now
Unlock full access