Zoom In
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

Constraints
2 <= len(xs) == len(ys) <= 30left < right,top > 0
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More matplotlib problems
- Bars in PairsMedium
- Bars on Top of BarsMedium
- Boxes for GroupsMedium
- Grid of FourMedium
- Numbers on a HeatmapMedium
- Price and Its AverageMedium
- Shade the RangeMedium
- Two ScalesMedium