Adding Text To Our Plots (PRACTICAL)
Important note before watching this tutorial
In more recent updates of matplotlib (versions 3.3 and above) the plt.annotate method no longer uses the parameter called "s" for adding the desired text, we must replace it with a parameter "text" instead.
For example, instead of s = "Patient 705" our code would now have text = "Patient 705"
To find out which version of matplotlib you are currently using, run the following code:
If you are using a version prior to 3.3 it should work fine with "s" otherwise you maye encounter a warning or error, and thus you will need to ensure your code uses the "text" parameter instead!