FunctionRacerProblemsRace

Shade the Range

MediummatplotlibPython

A forecast comes with a low and a high estimate. Draw low and high against xs as two lines, low first, and shade the area between them with fill_between. Return the figure.

Checked: the lines and the filled areas.

Example 1

xs [1,2,3,4]
low [2,3,2,4]
high [5,6,4,9]
draws
The chart to draw in example 1 of Shade the Range

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