# Plots not working on julia

**URL:** <https://discourse.julialang.org/t/plots-not-working-on-julia/68197>\
**Category:** New to Julia\
**Tags:** package, plotting, plots\
**Created:** [September 15, 2021, 8:11am UTC](https://discourse.julialang.org/t/plots-not-working-on-julia/68197 "2021-09-15T08:11:05Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![TOMAS\_RIQUELME\_GAJAR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_riquelme_gajar/32/29152_2.png) [@TOMAS\_RIQUELME\_GAJAR](https://discourse.julialang.org/u/TOMAS_RIQUELME_GAJAR)\
**Post date:** [September 15, 2021, 8:11am UTC](https://discourse.julialang.org/t/plots-not-working-on-julia/68197/1 "2021-09-15T08:11:06Z")

</div>

Hi!

I’m trying to plot with the package “Plots”. I did:  
using Plots  
x = 1:10; y=rand(10)  
plot(x,y)

but I get the next error:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/1/016aceb80e3672209e012be3c963df55ea0c86e8.png)  
I’m not sure why is not getting the GKSFONT.DAT.

(I’ve already done Pkg.add(“Plots”), and it appeared to be added without errors, but is not working though).  
Any help is welcome!

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [September 15, 2021, 9:34am UTC](https://discourse.julialang.org/t/plots-not-working-on-julia/68197/2 "2021-09-15T09:34:35Z")

</div>

Can you try `]build GR`?

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [September 15, 2021, 1:05pm UTC](https://discourse.julialang.org/t/plots-not-working-on-julia/68197/3 "2021-09-15T13:05:35Z")

</div>

With Windows 10 and Julia 1.6.2 I get this.  
I have no idea if this is significant!

julia\> using Plots

(process:22120): GLib-GIO-WARNING \*\*: 14:03:31.886: Unexpectedly, UWP app `38526MediaLife.ZipPlus_2.0.4.0_x86__1crh1k73ty8mg' (AUMId `38526MediaLife.ZipPlus\_1crh1k73ty8mg!ZipExtractor’) supports 89 extensions but has no verbs

(process:22120): GLib-GIO-WARNING \*\*: 14:03:34.406: Unexpectedly, UWP app `3138AweZip.AweZip_1.4.8.0_x86__ffd303wmbhcjt' (AUMId `3138AweZip.AweZip\_ffd303wmbhcjt!App’) supports 168 extensions but has no verbs

---

<div class="post-metadata">

**Author:** ![GregR](https://avatars.discourse-cdn.com/v4/letter/g/e68b1a/32.png) [@GregR](https://discourse.julialang.org/u/GregR)\
**Post date:** [September 15, 2021, 3:28pm UTC](https://discourse.julialang.org/t/plots-not-working-on-julia/68197/4 "2021-09-15T15:28:07Z")

</div>

Plots is failing to precompile here on a Windows 10 machine.

Regards,  
Greg

---

<div class="post-metadata">

**Author:** ![TOMAS\_RIQUELME\_GAJAR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_riquelme_gajar/32/29152_2.png) [@TOMAS\_RIQUELME\_GAJAR](https://discourse.julialang.org/u/TOMAS_RIQUELME_GAJAR)\
**Post date:** [September 15, 2021, 3:39pm UTC](https://discourse.julialang.org/t/plots-not-working-on-julia/68197/5 "2021-09-15T15:39:17Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/1/5/15a4c687ebae1e73a72637d421cc6d5485ad2934.png)

Still having the same error though

---

<div class="post-metadata">

**Author:** ![TOMAS\_RIQUELME\_GAJAR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_riquelme_gajar/32/29152_2.png) [@TOMAS\_RIQUELME\_GAJAR](https://discourse.julialang.org/u/TOMAS_RIQUELME_GAJAR)\
**Post date:** [September 15, 2021, 3:40pm UTC](https://discourse.julialang.org/t/plots-not-working-on-julia/68197/6 "2021-09-15T15:40:04Z")

</div>

Any idea of how to fix it?

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [September 15, 2021, 4:14pm UTC](https://discourse.julialang.org/t/plots-not-working-on-julia/68197/7 "2021-09-15T16:14:38Z")

</div>

From an old issue [https://github.com/JuliaPlots/Plots.jl/issues/1649](https://github.com/JuliaPlots/Plots.jl/issues/1649)

Same issue reported [here](https://stackoverflow.com/questions/67354525/not-able-to-use-the-package-plot-in-julia-gks-error/68219881#68219881). At least for me on Windows 10, the problem was that the antivirus blocked `gksqt.exe.` Unblocking makes it run ok.

---

<div class="post-metadata">

**Author:** ![TOMAS\_RIQUELME\_GAJAR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_riquelme_gajar/32/29152_2.png) [@TOMAS\_RIQUELME\_GAJAR](https://discourse.julialang.org/u/TOMAS_RIQUELME_GAJAR)\
**Post date:** [September 15, 2021, 4:34pm UTC](https://discourse.julialang.org/t/plots-not-working-on-julia/68197/8 "2021-09-15T16:34:55Z")

</div>

But the error is not the same, I’m having trouble with finding GKSFONT.DAT, the issue you are telling me says that GKS is not in proper state. I tried without the antivirus working though and the error is still the same.

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [September 15, 2021, 4:55pm UTC](https://discourse.julialang.org/t/plots-not-working-on-julia/68197/9 "2021-09-15T16:55:37Z")

</div>

You error report contained the line: GKS: can’t connect to GKS socket application

I tested Plots on Windows 10 and I can plot OK. Really sorry I can’t help solve this one.  
Have you tried remove Plots then add Plots?

---

<div class="post-metadata">

**Author:** ![TOMAS\_RIQUELME\_GAJAR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_riquelme_gajar/32/29152_2.png) [@TOMAS\_RIQUELME\_GAJAR](https://discourse.julialang.org/u/TOMAS_RIQUELME_GAJAR)\
**Post date:** [September 15, 2021, 5:42pm UTC](https://discourse.julialang.org/t/plots-not-working-on-julia/68197/10 "2021-09-15T17:42:42Z")

</div>

Yes ☹, it still jumps the same error

---

<div class="post-metadata">

**Author:** ![janilin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/janilin/32/33769_2.png) [@janilin](https://discourse.julialang.org/u/janilin)\
**Post date:** [February 13, 2022, 6:23am UTC](https://discourse.julialang.org/t/plots-not-working-on-julia/68197/12 "2022-02-13T06:23:30Z")

</div>

It worked for me, thanks a lot!
