# GKS problem, using Plots

**URL:** https://discourse.julialang.org/t/gks-problem-using-plots/43464
**Category:** Visualization
**Tags:** plotting
**Created:** [July 22, 2020, 1:27am UTC](https://discourse.julialang.org/t/gks-problem-using-plots/43464 "2020-07-22T01:27:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cruddy](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@cruddy](https://discourse.julialang.org/u/cruddy)
#### Post date: [July 22, 2020, 1:27am UTC](https://discourse.julialang.org/t/gks-problem-using-plots/43464/1 "2020-07-22T01:27:39Z")

</div>

Hi, I don’t have enough experience with Julia, but I was trying to make a plot and I got an error:

using Plots  
gr()  
plot(x,y,linetype=:scatter, leg=false)  
And I get:  
GKS: GDP primitive not supported for X11

I’ve tried:  
ENV[“GRDIR”]=“”  
Pkg.build(“GR”)

But it still doesn’t work. Could someone help me please? thx!  
I’m using Ubuntu 20.04.

---

<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: [July 22, 2020, 6:21am UTC](https://discourse.julialang.org/t/gks-problem-using-plots/43464/2 "2020-07-22T06:21:22Z")

</div>

For any reason, you are using X11 as output device. Do you have environment variables like `GKS_WSTYPE` or `GKSwstype` set (to X11 or 211) in any of your profiles?

Please try `env GKS_WSTYPE=gksqt julia` …
