Legend and annotations
Legends and annotations are essential for good plots. We can create transparent legends with the legend function and let Matplotlib figure out where to place them. Also, with the annotate function we can put annotations very accurately on a plot. There are a large number of annotation and arrow styles.