# How to suppress specific warning?

**URL:** https://discourse.julialang.org/t/how-to-suppress-specific-warning/69502
**Category:** Visualization
**Tags:** plots, gr
**Created:** [October 10, 2021, 7:02am UTC](https://discourse.julialang.org/t/how-to-suppress-specific-warning/69502 "2021-10-10T07:02:13Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)
#### Post date: [October 10, 2021, 7:02am UTC](https://discourse.julialang.org/t/how-to-suppress-specific-warning/69502/1 "2021-10-10T07:02:13Z")

</div>

I get the following warning when plotting two surfaces with different colors but only showing one colorbar, which is what I want:

```julia
┌ Warning: Multiple series with different fill alpha share a colorbar. Colorbar may not reflect all series correctly.

```

But how do I remove this annoying warning message which is kept on being generated for each call to the plotting function.

Kind regards

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [October 10, 2021, 11:02pm UTC](https://discourse.julialang.org/t/how-to-suppress-specific-warning/69502/2 "2021-10-10T23:02:26Z")

</div>

This seems to be a [desirable warning](https://github.com/JuliaPlots/Plots.jl/issues/2688#issuecomment-677660443), but only issued by the `gr()` backend.

---

<div class="post-metadata">

### Author: ![mike\_k](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mike_k/32/211864_2.png) [@mike\_k](https://discourse.julialang.org/u/mike_k)
#### Post date: [October 11, 2021, 10:11am UTC](https://discourse.julialang.org/t/how-to-suppress-specific-warning/69502/3 "2021-10-11T10:11:38Z")

</div>

You could try [Suppressor.jl](https://github.com/JuliaIO/Suppressor.jl).

---

<div class="post-metadata">

### Author: ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)
#### Post date: [October 11, 2021, 1:27pm UTC](https://discourse.julialang.org/t/how-to-suppress-specific-warning/69502/4 "2021-10-11T13:27:54Z")

</div>

When you are plotting two surfaces on top of each other, to see where they overlap visually, it is quite annoying to have this warning pop up multiple times. That is why I would like to suppress it, because as an user, I took the decision to only show one colorbar. It ruins the interactivity of my work when logs in terminal is shown with these messages in between and I actually care about other errors - just not this one.

@mike_k Thanks, but it seems like it has not been updated for 2 years. I would like to avoid relying on such a package - there must be away to do what I want.

EDIT: Sorry if I sound mad, that is not my intention 🙂

Kind regards

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [October 11, 2021, 1:37pm UTC](https://discourse.julialang.org/t/how-to-suppress-specific-warning/69502/5 "2021-10-11T13:37:04Z")

</div>

Maybe you could consider using another Plots.jl backend if this is so critical. Checked pyplot() and it seems to be fine.

_ **NB:** had to guess from your other posts that you are only using gr(), and then tagged this one accordingly._

---

<div class="post-metadata">

### Author: ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)
#### Post date: [October 11, 2021, 1:54pm UTC](https://discourse.julialang.org/t/how-to-suppress-specific-warning/69502/6 "2021-10-11T13:54:21Z")

</div>

Yeah sorry, forgot to mention - thanks though!

I will write a issue on the Github of gr.

Kind regards

---

<div class="post-metadata">

### Author: ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)
#### Post date: [October 11, 2021, 1:55pm UTC](https://discourse.julialang.org/t/how-to-suppress-specific-warning/69502/7 "2021-10-11T13:55:43Z")

</div>

[https://github.com/jheinen/GR.jl/issues/433](https://github.com/jheinen/GR.jl/issues/433)
