# How to change the background color in GR?

**URL:** <https://discourse.julialang.org/t/how-to-change-the-background-color-in-gr/22776>\
**Category:** Visualization\
**Tags:** plotting\
**Created:** [April 4, 2019, 10:54pm UTC](https://discourse.julialang.org/t/how-to-change-the-background-color-in-gr/22776 "2019-04-04T22:54:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarmstrong](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jarmstrong/32/7807_2.png) [@jarmstrong](https://discourse.julialang.org/u/jarmstrong)\
**Post date:** [April 4, 2019, 10:54pm UTC](https://discourse.julialang.org/t/how-to-change-the-background-color-in-gr/22776/1 "2019-04-04T22:54:54Z")

</div>

I use GR as a quick plotting back-end, as it’s faster than loading the Plots package.

Can anyone tell me how to change the default background color of GR plots from transparent to white? (Ideally permanently). I usually code in Juno or Jupyter with a dark theme, and in both cases it’s difficult to see the plot with black axis / text over the dark background.

---

<div class="post-metadata">

**Author:** ![longemen3000](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/longemen3000/32/7298_2.png) [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Post date:** [April 5, 2019, 4:49am UTC](https://discourse.julialang.org/t/how-to-change-the-background-color-in-gr/22776/2 "2019-04-05T04:49:21Z")

</div>

> [@jarmstrong](#):
>
> I use GR as a quick plotting back-end, as it’s faster than loading the Plots package.
> 
> Can anyone tell me how to change the default background color of GR plots from transparent to white? (Ideally permanently). I usually code in Juno or Jupyter with a dark theme, and in both cases it’s difficult to see the plot with black axis / text over the dark background.

(i dont use jupyter, but i checked the code of GR.jl and i found this:

```julia
GR.plot(x,y,backgroundcolor=255) 

```

it seems to use Int32 for the color values(i tested putting numbers xD). so i can infer that accepts colors of the type RGB, with alpha values, coded as a int32

---

<div class="post-metadata">

**Author:** ![asinghvi17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asinghvi17/32/8272_2.png) [@asinghvi17](https://discourse.julialang.org/u/asinghvi17)\
**Post date:** [April 13, 2019, 4:22pm UTC](https://discourse.julialang.org/t/how-to-change-the-background-color-in-gr/22776/3 "2019-04-13T16:22:19Z")

</div>

`usecolorscheme(2)` might alleviate some of your problems (though it still looks like this):

 ![31100PM](https://global.discourse-cdn.com/julialang/original/3X/7/9/791ae42ddfa1fe1efb862a8407e6acbf6138c3f2.png)
