How to plot and save figure, by running code on unix server

How to plot and save figure, by running code on the Unix server.

Thank you in advance.

What problems are you experiencing? What plotting package are you using?

FWIW in the most basic case, with Plots.jl it should be as simple as:

p = plot(... whatever you are plotting ...)
savefig(p, "myplot.svg")

Yes, I know it, how to save.

I have problem to plot.

Okay you might want to change your title and OP then, given that it says “how to plot and save

What exactly is your problem when plotting?

1 Like

And can you post the relevant code? See Please read: make it easier to help you.

1 Like

I am sorry, not to enough clarify my question.
I try this code and plot rise a error (very long message).

using Plots
ENV["GKSwstype"]="nul"
gr()
x=[1:10]
y=2*x
plot(y,x)

Would you help me, How to build a figure on server?

Thank you in advance.

The problem was resolved by Pkg.Update()