FunctionRacerProblemsRace

Name the Chart

BeginnermatplotlibPython

Draw a line chart of ys against xs, give it the title title, label the x axis xlabel and the y axis ylabel, and return the figure.

Checked: the lines, the title, the x label and the y label.

Example 1

xs [1,2,3,4]
ys [10,12,9,15]
title "Sales"
xlabel "week"
ylabel "units"
draws
The chart to draw in example 1 of Name the Chart

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