Plotting on remote server

I am runnging my code on supercomputer server and I always receive this error

Connection refused
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
qt.qpa.xcb: could not connect to display localhost:11.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, minimal, offscreen, vnc, xcb.


my code generates the animated JIF successfully only for small values and failed for larger values with same error appear in both cases and file size is too big
this is my code

anim = @animate for ist in 1:Nsteps
        scatter([Person[i]["x"] for i in 1:Npopulations], [Person[i]["y"] for i in 1:Npopulations],legend=false, color = [Person[i]["color"] for i in 1:Npopulations])
gif(anim, "anim_0.1_Prob.gif", fps = 10)