# How to plot mean +/- deviation in Plots.jl?

**URL:** <https://discourse.julialang.org/t/how-to-plot-mean-deviation-in-plots-jl/1975>\
**Category:** Visualization\
**Tags:** question, plotting\
**Created:** [February 8, 2017, 7:08am UTC](https://discourse.julialang.org/t/how-to-plot-mean-deviation-in-plots-jl/1975 "2017-02-08T07:08:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [February 8, 2017, 7:20am UTC](https://discourse.julialang.org/t/how-to-plot-mean-deviation-in-plots-jl/1975/5 "2017-02-08T07:20:23Z")

</div>

For future reference, this is the solution:

```julia
using Plots

xs = linspace(1,100)
μs = log.(xs)
σs = rand(length(xs))

plot(xs,μs,grid=false,ribbon=σs,fillalpha=.5)

```

Thank you @mkborregaard.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-plot-mean-deviation-in-plots-jl/1975)._
