diff --git a/src/conversions.jl b/src/conversions.jl index 487b15c71..6b097bae7 100644 --- a/src/conversions.jl +++ b/src/conversions.jl @@ -59,6 +59,13 @@ function convert_arguments(T::PlotFunc, args...; kw...) end end +""" +Wrap a single point or equivalent object in a single-element array. +""" +function convert_arguments(::PointBased, position::VecTypes{N, <: Number}) where N + ([convert(Point{N, Float32}, position)],) +end + function convert_arguments(::PointBased, positions::AbstractVector{<: VecTypes{N, <: Number}}) where N (elconvert(Point{N, Float32}, positions),) end