Legends and annotations are effective tools to display information required to comprehend a plot in a glance. A typical plot will have the following additional information elements:
legend()function and supplying the labels for each data series.
annotate()function can be used for this purpose. A matplotlib annotation consists of a label and an arrow. This function has many parameters describing the label and arrow style and position, so you may need to call
help(annotate)for a detailed description.