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:
parent
04484adc22
commit
ce00617796
@ -925,7 +925,7 @@ function execall(gp::GPSession; term::AbstractString="", output::AbstractString=
|
|||||||
gpexec(gp, "unset multiplot")
|
gpexec(gp, "unset multiplot")
|
||||||
gpexec(gp, "set term $term")
|
gpexec(gp, "set term $term")
|
||||||
end
|
end
|
||||||
(output != "") && gpexec(gp, "set output '$output'")
|
(output != "") && gpexec(gp, "set output '$(replace(output, "'" => "''"))'")
|
||||||
|
|
||||||
# printstyled("Plotting with terminal: " * terminal() * "\n", color=:blue, bold=true)
|
# printstyled("Plotting with terminal: " * terminal() * "\n", color=:blue, bold=true)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user