Making plots with background bands

I’m trying to plot something similar to the leftmost plot in the image below. With the horizontal bands defined by y-axis values. Specifically, I want to do three bands one from Y1 to Y2, one from Y2 to Y3, and the last one from Y3 to Y4 for distinct Y1,2,3,4.

Plot Example

I’m using Plots.jl with the plotlyjs backend.

I’d also like to know how to do it with vertical bands.