# Plots... filling area between two curves?

**URL:** <https://discourse.julialang.org/t/plots-filling-area-between-two-curves/15204>\
**Category:** General Usage\
**Created:** [September 19, 2018, 11:18pm UTC](https://discourse.julialang.org/t/plots-filling-area-between-two-curves/15204 "2018-09-19T23:18:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)\
**Post date:** [September 19, 2018, 11:18pm UTC](https://discourse.julialang.org/t/plots-filling-area-between-two-curves/15204/1 "2018-09-19T23:18:11Z")

</div>

With `Plots` – how can I fill the area between two curves/time series? E.g., suppose:

- I have one time series consisting of pairs (x\_i,y\_i) with i\in\{1,\ldots,N\} - where y\_i could be the expected value of some system,
- and I have also pairs (x\_i,\sigma\_i) where \sigma\_i could be some standard deviation varying with i.
- I would then like to produce a plot which is a filled area between curves y\_i -\sigma\_i and y\_i + \sigma\_i

How can I do this?

In more general terms, how to fill the area bounded by curves y\_1(x), y\_2(x), and x=x\_a and x=x\_b?

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [September 20, 2018, 2:27am UTC](https://discourse.julialang.org/t/plots-filling-area-between-two-curves/15204/2 "2018-09-20T02:27:35Z")

</div>

[https://stackoverflow.com/questions/48334036/how-to-fill-area-between-curves-with-plots-jl](https://stackoverflow.com/questions/48334036/how-to-fill-area-between-curves-with-plots-jl)

---

<div class="post-metadata">

**Author:** ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)\
**Post date:** [September 20, 2018, 5:29am UTC](https://discourse.julialang.org/t/plots-filling-area-between-two-curves/15204/3 "2018-09-20T05:29:18Z")

</div>

Thanks. The `ribbon` argument is what I needed.
