Premium problem14. Horizontal Reference Line

Easy Locked

Plot y against x, then draw a horizontal reference line across the full width of the Axes at y = threshold -- the kind of line that marks an SLA, a target, or a decision boundary.

Return the Axes. The reference line spans the Axes rather than the data, so reach for the method that draws one at a given height rather than plotting two more points.

Premium problem

This one's part of Premium. Unlock the full Matplotlib track plus every other premium problem on the site.

Implement solve(...)