# Plot Issue on Ubuntu 18.04.4 LTS

**URL:** <https://discourse.julialang.org/t/plot-issue-on-ubuntu-18-04-4-lts/39186>\
**Category:** Tooling\
**Tags:** package, plotting\
**Created:** [May 9, 2020, 4:31pm UTC](https://discourse.julialang.org/t/plot-issue-on-ubuntu-18-04-4-lts/39186 "2020-05-09T16:31:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Halley](https://avatars.discourse-cdn.com/v4/letter/h/bcef8e/32.png) [@Halley](https://discourse.julialang.org/u/Halley)\
**Post date:** [May 9, 2020, 4:31pm UTC](https://discourse.julialang.org/t/plot-issue-on-ubuntu-18-04-4-lts/39186/1 "2020-05-09T16:31:16Z")

</div>

I am trying to use plots in Julia (1.04) from the terminal, to graph a time column (I already transformed it to time data). I have not been able to graph any type of matrix, in all cases it throws the following error:

/home/halley/.julia/packages/GR/yMV3y/src/…/deps/gr/bin/gksqt: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory  
connect: Conexión rehusada  
GKS: can’t connect to GKS socket application  
GKS: Open failed in routine OPEN\_WS  
GKS: GKS not in proper state. GKS must be either in the state WSOP or WSAC in routine ACTIVATE\_WS  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine FILLAREA  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine FILLAREA  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE

---

<div class="post-metadata">

**Author:** ![j2b2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j2b2/32/3387_2.png) [@j2b2](https://discourse.julialang.org/u/j2b2)\
**Post date:** [May 9, 2020, 7:55pm UTC](https://discourse.julialang.org/t/plot-issue-on-ubuntu-18-04-4-lts/39186/2 "2020-05-09T19:55:48Z")

</div>

> [@Halley](#):
>
> libQtGui.so.4: cannot open shared object file: No such file or directory

Try `sudo apt install libqtgui4`

---

<div class="post-metadata">

**Author:** ![Halley](https://avatars.discourse-cdn.com/v4/letter/h/bcef8e/32.png) [@Halley](https://discourse.julialang.org/u/Halley)\
**Post date:** [May 9, 2020, 8:59pm UTC](https://discourse.julialang.org/t/plot-issue-on-ubuntu-18-04-4-lts/39186/3 "2020-05-09T20:59:25Z")

</div>

I have already tried it and it continues with the same problem …

---

<div class="post-metadata">

**Author:** ![j2b2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j2b2/32/3387_2.png) [@j2b2](https://discourse.julialang.org/u/j2b2)\
**Post date:** [May 11, 2020, 8:52am UTC](https://discourse.julialang.org/t/plot-issue-on-ubuntu-18-04-4-lts/39186/4 "2020-05-11T08:52:39Z")

</div>

I tried answering because I use Ubuntu too, and I remember some similar problem when I started using Plots and GR two years ago, but sorry, I can’t help. Relations between Qt, GKS and GR are mysterious for me.

Good luck !

---

<div class="post-metadata">

**Author:** ![joeganiomego](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joeganiomego/32/14067_2.png) [@joeganiomego](https://discourse.julialang.org/u/joeganiomego)\
**Post date:** [November 20, 2020, 9:21pm UTC](https://discourse.julialang.org/t/plot-issue-on-ubuntu-18-04-4-lts/39186/5 "2020-11-20T21:21:10Z")

</div>

I am on Ubuntu 20.04.1 LTS. With Julia 1.5.2.  
I have the same problem:  
Same list of messages as you.

GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE

However it happens on a aleatory basis. Let’s say 33% of the times. I need to restart REPL and the problem disappears.
