# Plots: gr(), after savefig() plots become ugly

**URL:** <https://discourse.julialang.org/t/plots-gr-after-savefig-plots-become-ugly/22591>\
**Category:** Visualization\
**Created:** [April 1, 2019, 9:35am UTC](https://discourse.julialang.org/t/plots-gr-after-savefig-plots-become-ugly/22591 "2019-04-01T09:35:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davide](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davide/32/52136_2.png) [@davide](https://discourse.julialang.org/u/davide)\
**Post date:** [April 1, 2019, 9:35am UTC](https://discourse.julialang.org/t/plots-gr-after-savefig-plots-become-ugly/22591/1 "2019-04-01T09:35:04Z")

</div>

Using Plots, when I plot with the gr() backend I get a nice graph (in its own window). The savefig() command closes that window; after that, next plots will be displayed in a new window, but with ugly graphics (and no transparency).

A difference is that at the beginning the graph is drawn in a in a window named “GKS QtTerm”; after, windows are named “GKS 5”.  
GKS\* entries displayed with ENV are the same in both cases (apart for the appearance of “GKS\_FILEPATH” pointing to a graph file in /tmp/).

Is there a solution?  
I opened an issue in Plots.jl ([#1964](https://github.com/JuliaPlots/Plots.jl/issues/1964)), but there were no comments (yet).

My system: GR v0.38.1, Julia v1.1 on Linux

Thanks for help

---

<div class="post-metadata">

**Author:** ![KajWiik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kajwiik/32/199_2.png) [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Post date:** [April 1, 2019, 9:54am UTC](https://discourse.julialang.org/t/plots-gr-after-savefig-plots-become-ugly/22591/2 "2019-04-01T09:54:50Z")

</div>

I can confirm this. (Ubuntu 18.04, Julia 1.1, GR v0.38.1, Plots v0.24.0)

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [April 1, 2019, 12:10pm UTC](https://discourse.julialang.org/t/plots-gr-after-savefig-plots-become-ugly/22591/3 "2019-04-01T12:10:49Z")

</div>

I fixed this in [#1978](https://github.com/JuliaPlots/Plots.jl/pull/1978). You might get a warning (about an invalid workstation type) in GR - this is fixed in GR master and will be tagged this week.

---

<div class="post-metadata">

**Author:** ![davide](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davide/32/52136_2.png) [@davide](https://discourse.julialang.org/u/davide)\
**Post date:** [April 1, 2019, 12:53pm UTC](https://discourse.julialang.org/t/plots-gr-after-savefig-plots-become-ugly/22591/4 "2019-04-01T12:53:11Z")

</div>

Great, thanks. I’ll be waiting for it.

---

<div class="post-metadata">

**Author:** ![davide](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davide/32/52136_2.png) [@davide](https://discourse.julialang.org/u/davide)\
**Post date:** [April 15, 2019, 9:06am UTC](https://discourse.julialang.org/t/plots-gr-after-savefig-plots-become-ugly/22591/5 "2019-04-15T09:06:16Z")

</div>

Still not solved in GR v0.39.0 (Plots v0.24.0)
