# Quick question on colors in a contour plot

**URL:** <https://discourse.julialang.org/t/quick-question-on-colors-in-a-contour-plot/32493>\
**Category:** Visualization\
**Created:** [December 19, 2019, 11:06pm UTC](https://discourse.julialang.org/t/quick-question-on-colors-in-a-contour-plot/32493 "2019-12-19T23:06:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![klaff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/klaff/32/7637_2.png) [@klaff](https://discourse.julialang.org/u/klaff)\
**Post date:** [December 19, 2019, 11:06pm UTC](https://discourse.julialang.org/t/quick-question-on-colors-in-a-contour-plot/32493/1 "2019-12-19T23:06:52Z")

</div>

Hi,

I’m making a contour plot using something like

```julia
using Plots
p1 = plot(xoffsets, zerrs, out, st=:contour, levels=0.0:0.05:1.00)

```

The plot works but I want to change the color series (the default colors for values near 1.00 go to yellow, which disappears against white.)

Suggestions?

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [December 19, 2019, 11:17pm UTC](https://discourse.julialang.org/t/quick-question-on-colors-in-a-contour-plot/32493/2 "2019-12-19T23:17:40Z")

</div>

`color =` one of the many inbuilt color schemes [Colors · Plots](https://docs.juliaplots.org/latest/colors/#colorschemes)?

---

<div class="post-metadata">

**Author:** ![klaff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/klaff/32/7637_2.png) [@klaff](https://discourse.julialang.org/u/klaff)\
**Post date:** [December 20, 2019, 1:13am UTC](https://discourse.julialang.org/t/quick-question-on-colors-in-a-contour-plot/32493/3 "2019-12-20T01:13:45Z")

</div>

Thank you.

I had tried that, but only in a modifying style which doesn’t seem to work. Specifically, this

```julia
p1 = plot(xoffsets, zerrs, out, st=:contour, color=:greys, levels=0.0:0.05:1.00)

```

works, but

```julia
plot!(p1, color=:blues)

```

doesn’t change the colors of the plot I just made. Am I wrong to expect it to?

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [December 20, 2019, 7:22am UTC](https://discourse.julialang.org/t/quick-question-on-colors-in-a-contour-plot/32493/4 "2019-12-20T07:22:00Z")

</div>

No you’re not wrong as such, in that it works for certain types of attributes. But you can’t update attributes of a Series with `plot!` (which is geared towards adding new series). Axis, SubPlot and Plot attributes are updateable like that, by plotting again to the plot with no input data and different attributes.

---

<div class="post-metadata">

**Author:** ![klaff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/klaff/32/7637_2.png) [@klaff](https://discourse.julialang.org/u/klaff)\
**Post date:** [December 20, 2019, 2:09pm UTC](https://discourse.julialang.org/t/quick-question-on-colors-in-a-contour-plot/32493/5 "2019-12-20T14:09:13Z")

</div>

Thank you, I see now that there is a hint in the docs:

> You can update certain plot settings after plot creation
