Allow using single quotes in output file names

Gnuplot single-quoted strings have to escape single-quote characters
by doubling them.
This commit is contained in:
Michal Sojka 2021-12-13 18:58:24 +01:00
parent 04484adc22
commit ce00617796

View File

@ -925,7 +925,7 @@ function execall(gp::GPSession; term::AbstractString="", output::AbstractString=
gpexec(gp, "unset multiplot")
gpexec(gp, "set term $term")
end
(output != "") && gpexec(gp, "set output '$output'")
(output != "") && gpexec(gp, "set output '$(replace(output, "'" => "''"))'")
# printstyled("Plotting with terminal: " * terminal() * "\n", color=:blue, bold=true)