# How do I color the plotting plan above/under a line in different colors?

**URL:** <https://discourse.julialang.org/t/how-do-i-color-the-plotting-plan-above-under-a-line-in-different-colors/127751>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [April 5, 2025, 8:52pm UTC](https://discourse.julialang.org/t/how-do-i-color-the-plotting-plan-above-under-a-line-in-different-colors/127751 "2025-04-05T20:52:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Torkel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/torkel/32/5030_2.png) [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Post date:** [April 5, 2025, 8:52pm UTC](https://discourse.julialang.org/t/how-do-i-color-the-plotting-plan-above-under-a-line-in-different-colors/127751/1 "2025-04-05T20:52:08Z")

</div>

Say that I have defined a line:

```julia
using Plots
x_vals = 1:10
y_vals = sqrt.(x_vals)
plot(x_vals, y_vals)

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/9/499ce9b1a6c16ef4bddd27b9f629ec9467fad117.png)

Is there a way that I can color the plot plane, so that the area below the line have one color and the are below have another one?

---

<div class="post-metadata">

**Author:** ![Torkel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/torkel/32/5030_2.png) [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Post date:** [April 5, 2025, 9:08pm UTC](https://discourse.julialang.org/t/how-do-i-color-the-plotting-plan-above-under-a-line-in-different-colors/127751/2 "2025-04-05T21:08:06Z")

</div>

The solution is to use the `fillrange` kwarg to `plot`.
