diff --git a/Project.toml b/Project.toml index 3f06ac1..541846e 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ModiaResult" uuid = "16a87621-1533-42f6-8e19-4a825980cec2" authors = ["Martin.Otter@dlr.de "] -version = "0.3.6" +version = "0.3.7" [deps] DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" diff --git a/src/makie.jl b/src/makie.jl index 22fc671..9969849 100644 --- a/src/makie.jl +++ b/src/makie.jl @@ -146,11 +146,12 @@ function sig_max(xsig, y_min, y_max) return y_max2 end - +# Something of the following is required in the file where makie.jl is included: +# const Makie_Point2f = isdefined(GLMakie, :Point2f) ? Point2f : Point2f0 function fill_between(axis, xsig, ysig_min, ysig_max, color) ysig_max2 = sig_max(xsig, ysig_min, ysig_max) - sig = Point2f0.(xsig,ysig_min) - append!(sig, reverse(Point2f0.(xsig,ysig_max2))) + sig = Makie_Point2f.(xsig,ysig_min) + append!(sig, reverse(Makie_Point2f.(xsig,ysig_max2))) push!(sig, sig[1]) return poly!(axis, sig, color = color) end