From 5eafabfca5756d07c22696ce1c112460a92c7b7f Mon Sep 17 00:00:00 2001 From: Giorgio Calderone Date: Fri, 27 Mar 2020 19:10:47 +0100 Subject: [PATCH] Added support "missing"; Updated minimum gnuplot version --- src/Gnuplot.jl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Gnuplot.jl b/src/Gnuplot.jl index 71877b6..0506471 100644 --- a/src/Gnuplot.jl +++ b/src/Gnuplot.jl @@ -100,6 +100,7 @@ end # --------------------------------------------------------------------- +tostring(::Missing) = "?" tostring(v) = string(v) tostring(c::ColorTypes.RGB) = string(Int(c.r*255)) * " " * string(Int(c.g*255)) * " " * string(Int(c.b*255)) tostring(v::AbstractString) = "\"" * string(v) * "\"" @@ -763,7 +764,7 @@ version() = v"1.0-dev" Return the *gnuplot* application version. -Raise an error if version is < 4.7 (required to use data blocks). +Raise an error if version is < 5.0 (required to use data blocks). """ function gpversion() options.dry && (return v"0.0.0") @@ -785,8 +786,8 @@ function gpversion() end end - if ver < v"4.7" - error("gnuplot ver. >= 4.7 is required, but " * string(ver) * " was found.") + if ver < v"5.0" + error("gnuplot ver. >= 5.0 is required, but " * string(ver) * " was found.") end return ver end