FunctionRacerProblemsRace

Label the Peak

EasymatplotlibPython

Draw ys against xs as a line, and write the text "peak" at the highest point of the line. Return the figure.

Checked: the lines and the texts and where they sit.

Example 1

xs [1,2,3,4]
ys [2,9,3,7]
draws
The chart to draw in example 1 of Label the Peak

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More matplotlib problems