# Change the color of shaded area in plotting uncertain quantity in MonteCarloMeasurements.jl

**URL:** <https://discourse.julialang.org/t/change-the-color-of-shaded-area-in-plotting-uncertain-quantity-in-montecarlomeasurements-jl/85956>\
**Category:** Performance\
**Created:** [August 19, 2022, 12:08am UTC](https://discourse.julialang.org/t/change-the-color-of-shaded-area-in-plotting-uncertain-quantity-in-montecarlomeasurements-jl/85956 "2022-08-19T00:08:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Firstname\_Lastname](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/firstname_lastname/32/34201_2.png) [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Post date:** [August 19, 2022, 12:08am UTC](https://discourse.julialang.org/t/change-the-color-of-shaded-area-in-plotting-uncertain-quantity-in-montecarlomeasurements-jl/85956/1 "2022-08-19T00:08:48Z")

</div>

From the following code

```julia
using MonteCarloMeasurements, Plots

x = LinRange(1:0.1:3)
a = 1 \pm 0.1
b = 2 \pm 0.3

f(x) = a*x + b
plot(x, f.(x))

```

I obtained a plot with shaded area in light blue.

How can I change this color to, for example, gray or black color?

Thank you.

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [August 19, 2022, 6:52am UTC](https://discourse.julialang.org/t/change-the-color-of-shaded-area-in-plotting-uncertain-quantity-in-montecarlomeasurements-jl/85956/2 "2022-08-19T06:52:45Z")

</div>

You can use the standard Plots.jl keywords, e.g.,

```julia
plot(x, f.(x), color=:gray)

```

or

```julia
plot(x, f.(x), fillcolor=:gray)

```

if you only want the shading to change color.

---

<div class="post-metadata">

**Author:** ![Firstname\_Lastname](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/firstname_lastname/32/34201_2.png) [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Post date:** [August 19, 2022, 8:24am UTC](https://discourse.julialang.org/t/change-the-color-of-shaded-area-in-plotting-uncertain-quantity-in-montecarlomeasurements-jl/85956/3 "2022-08-19T08:24:29Z")

</div>

Thank you for your quick help. By the way, how can I increase the line width (or change the line style) of the mean line (curve)?
