matplotlib.pyplot.axvspan
- matplotlib.pyplot.axvspan(xmin, xmax, ymin=0, ymax=1, **kwargs)
Add a vertical span (rectangle) across the Axes.
The rectangle spans from xmin to xmax horizontally, and, by default, the whole y-axis vertically. The y-span can be set using ymin (default: 0) and ymax (default: 1) which are in axis units; e.g.
ymin = 0.5always refers to the middle of the y-axis regardless of the limits set by .