# Plot function return a message

**URL:** https://discourse.julialang.org/t/plot-function-return-a-message/59574
**Category:** New to Julia
**Created:** [April 19, 2021, 2:26am UTC](https://discourse.julialang.org/t/plot-function-return-a-message/59574 "2021-04-19T02:26:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Abdou](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Abdou](https://discourse.julialang.org/u/Abdou)
#### Post date: [April 19, 2021, 2:26am UTC](https://discourse.julialang.org/t/plot-function-return-a-message/59574/1 "2021-04-19T02:26:32Z")

</div>

I newly installed Julia 1.6. The plot function in StatsPlots or Plots packages return this message (the function worked perfectly in Julia 1.5.3) connect No error 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 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  
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 POLYLINE  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER  
GKS GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYMARKER

I do not understand the meaning of this message and what I can do

Thanks for any contribution

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [April 19, 2021, 5:08am UTC](https://discourse.julialang.org/t/plot-function-return-a-message/59574/2 "2021-04-19T05:08:21Z")

</div>

Please consider the environment before printing.

---

<div class="post-metadata">

### Author: ![Abdou](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@Abdou](https://discourse.julialang.org/u/Abdou)
#### Post date: [April 19, 2021, 5:24am UTC](https://discourse.julialang.org/t/plot-function-return-a-message/59574/3 "2021-04-19T05:24:14Z")

</div>

please what do you mean by consider the environment?

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [April 19, 2021, 7:34am UTC](https://discourse.julialang.org/t/plot-function-return-a-message/59574/4 "2021-04-19T07:34:32Z")

</div>

There is a long issue with similar error messages:  
[https://github.com/JuliaPlots/Plots.jl/issues/1649](https://github.com/JuliaPlots/Plots.jl/issues/1649)  
Perhaps you find a “solution” there.
