From 69644f99ba3696da716ac4f778aad1212abc1cae Mon Sep 17 00:00:00 2001 From: Adam Lyon Date: Mon, 4 May 2020 15:58:59 -0500 Subject: [PATCH 1/2] Fix #24 --- src/Gnuplot.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gnuplot.jl b/src/Gnuplot.jl index cf3c1fd..fdb9794 100644 --- a/src/Gnuplot.jl +++ b/src/Gnuplot.jl @@ -2254,7 +2254,7 @@ function gpvars(sid::Symbol) if length(s) == 2 key = Symbol(s[1]) if s[2][1] == '"' - out[key] = s[2][2:end-1] + out[key] = s[2][2:prevind(s[2], end, 1)] else try out[key] = Meta.parse(s[2]) From 67a5583c296781515226c485899261d3a599b381 Mon Sep 17 00:00:00 2001 From: Adam Lyon Date: Mon, 4 May 2020 15:59:21 -0500 Subject: [PATCH 2/2] Fixes #25 --- src/Gnuplot.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Gnuplot.jl b/src/Gnuplot.jl index fdb9794..291cc9e 100644 --- a/src/Gnuplot.jl +++ b/src/Gnuplot.jl @@ -911,6 +911,7 @@ function execall(gp::GPSession; term::AbstractString="", output::AbstractString= if term != "" former_term = writeread(gp, "print GPVAL_TERM")[1] former_opts = writeread(gp, "print GPVAL_TERMOPTIONS")[1] + gpexec(gp, "unset multiplot") gpexec(gp, "set term $term") end (output != "") && gpexec(gp, "set output '$output'")