FunctionRacerProblemsRace

Zoom In

EasymatplotlibPython

Draw ys against xs as a line, then show only the part with x from left to right and y from 0 to top. Return the figure.

Checked: the lines, the x limits and the y limits.

Example 1

xs [1,2,3,4,5]
ys [2,4,3,7,5]
left 2
right 4
top 10
draws
The chart to draw in example 1 of Zoom In

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