Premium problem49. Annotate the Maximum

Medium Locked

Plot y against x, find the highest point, and annotate it with the text "max" and an arrow pointing at it.

Put the annotation's text at (x_max, y_max + 1) so it sits just above the point it names, and give it an arrow (any arrowprops will do). Return the Axes.

Annotation differs from plain text: it has both a point it refers to and a place the words sit.

Premium problem

This one's part of Premium. Unlock the full Matplotlib track plus every other premium problem on the site.

Implement solve(...)