Plots.jl icon indicating copy to clipboard operation
Plots.jl copied to clipboard

[FR] Allow Shape polygons to be separated using missing values.

Open diegozea opened this issue 2 years ago • 0 comments

Make Shape match the behavior of :path:

Missing values and non-finite values, including NaN, are not plotted. Instead, lines are separated into segments at these values.

MWE:

using Plots
Shape([(1, 6), (2, 7), (3, 5), (missing, missing), (1.5, 6.5), (2.5, 7.5), (3.5, 5.5)])

Current error:

MethodError: no method matching Plots.Shape(::Vector{Union{Missing, Real}}, ::Vector{Union{Missing, Real}})

Closest candidates are:

Plots.Shape(::AbstractVector{T} where T) at /home/diego/.julia/packages/Plots/E2187/src/components.jl:26

Plots.Shape(::Vector{Tuple{Any, Any}})@components.jl:26

diegozea avatar Jun 30 '22 23:06 diegozea