# Pyplot Fill between vaying color with specific values

**URL:** <https://discourse.julialang.org/t/pyplot-fill-between-vaying-color-with-specific-values/23173>\
**Category:** New to Julia\
**Tags:** plotting\
**Created:** [April 15, 2019, 9:02pm UTC](https://discourse.julialang.org/t/pyplot-fill-between-vaying-color-with-specific-values/23173 "2019-04-15T21:02:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santiago\_Cuervo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/santiago_cuervo/32/7403_2.png) [@Santiago\_Cuervo](https://discourse.julialang.org/u/Santiago_Cuervo)\
**Post date:** [April 15, 2019, 9:02pm UTC](https://discourse.julialang.org/t/pyplot-fill-between-vaying-color-with-specific-values/23173/1 "2019-04-15T21:02:21Z")

</div>

I’d like to fill between two curves varying the color depending on a value using PyPlot

It fills with a single color but I don’t know how to implement cmap or other keyword to fill as a function of a variable

```julia
vshax.fill_betweenx(Depth,Vsh,1,where=(Vsh .<= 1),color="red")

```
