diff --git a/src/Gnuplot.jl b/src/Gnuplot.jl index 419bce3..05eea90 100644 --- a/src/Gnuplot.jl +++ b/src/Gnuplot.jl @@ -1071,7 +1071,7 @@ function contourlines(args...; cntrparam="level auto 10") tmpfile = Base.Filesystem.tempname() sid = Symbol("j", Base.Libc.getpid()) if !haskey(Gnuplot.state.sessions, sid) - gp = gnuplot(sid, Gnuplot.state.cmd) + gp = getsession(sid) end Gnuplot.exec(sid, "set term unknown")