# Making plots with background bands

**URL:** <https://discourse.julialang.org/t/making-plots-with-background-bands/26549>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [July 19, 2019, 4:20pm UTC](https://discourse.julialang.org/t/making-plots-with-background-bands/26549 "2019-07-19T16:20:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerycruz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gerycruz/32/9426_2.png) [@gerycruz](https://discourse.julialang.org/u/gerycruz)\
**Post date:** [July 19, 2019, 4:20pm UTC](https://discourse.julialang.org/t/making-plots-with-background-bands/26549/1 "2019-07-19T16:20:08Z")

</div>

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](https://global.discourse-cdn.com/julialang/original/3X/c/a/ca189a93ece051289364855a676fafeb79f4e899.png)

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

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