# How to change Makie contourf line color

**URL:** <https://discourse.julialang.org/t/how-to-change-makie-contourf-line-color/79794>\
**Category:** Visualization\
**Tags:** plotting, makie\
**Created:** [April 21, 2022, 3:47pm UTC](https://discourse.julialang.org/t/how-to-change-makie-contourf-line-color/79794 "2022-04-21T15:47:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [April 21, 2022, 3:47pm UTC](https://discourse.julialang.org/t/how-to-change-makie-contourf-line-color/79794/1 "2022-04-21T15:47:00Z")

</div>

Hi,

Does anyone knows how to control the `contourf` line color and width (I do not find the default one visible enough).

 ![min_traj_source_1](https://global.discourse-cdn.com/julialang/original/3X/5/9/59614a0f61b45c087b0d14a02d64a6838746ba5c.png)

Note that I have tried to overlay call to contour with the same arguments but, for some reasons, the levels do not match exactly…

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [April 22, 2022, 5:23am UTC](https://discourse.julialang.org/t/how-to-change-makie-contourf-line-color/79794/2 "2022-04-22T05:23:44Z")

</div>

Contourf doesn’t have any lines at all, those are just border artifacts. Contour needs one level less I think, because for n bands there are n-1 lines

---

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [April 22, 2022, 9:08am UTC](https://discourse.julialang.org/t/how-to-change-makie-contourf-line-color/79794/3 "2022-04-22T09:08:16Z")

</div>

Seems obvious once you know it 😊… Thank you very much @jules !

```julia
    hm=Makie.contourf!(ax,xcs,ycs,rmt,levels=20,colormap=cm)
    hm=Makie.contour!(ax,xcs,ycs,rmt,levels=19,color=:white)

```

 ![min_traj_source_1](https://global.discourse-cdn.com/julialang/original/3X/7/9/7940951c7c2dd76996e127cfe436d4044e0c5407.png)
