# GR.jl: Change backgroundcolor of savefig() image

**URL:** <https://discourse.julialang.org/t/gr-jl-change-backgroundcolor-of-savefig-image/33382>\
**Category:** Visualization\
**Created:** [January 15, 2020, 6:48am UTC](https://discourse.julialang.org/t/gr-jl-change-backgroundcolor-of-savefig-image/33382 "2020-01-15T06:48:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![al314](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/al314/32/401_2.png) [@al314](https://discourse.julialang.org/u/al314)\
**Post date:** [January 15, 2020, 6:48am UTC](https://discourse.julialang.org/t/gr-jl-change-backgroundcolor-of-savefig-image/33382/1 "2020-01-15T06:48:11Z")

</div>

Hi all,

The script

```julia
using GR
plot(randn(199))
savefig("./test.PNG")

```

produces a PNG picture with a transparent background.  
How to fix this and make it for example white?

Thanks.

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [January 15, 2020, 7:11am UTC](https://discourse.julialang.org/t/gr-jl-change-backgroundcolor-of-savefig-image/33382/2 "2020-01-15T07:11:25Z")

</div>

> [@al314](#):
>
> savefig(“./test.PNG”)

```julia
savefig("./test.jpg")

```

---

<div class="post-metadata">

**Author:** ![markushhh](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@markushhh](https://discourse.julialang.org/u/markushhh)\
**Post date:** [January 15, 2020, 10:25am UTC](https://discourse.julialang.org/t/gr-jl-change-backgroundcolor-of-savefig-image/33382/3 "2020-01-15T10:25:20Z")

</div>

What about a vector graphik pdf?
