Merge pull request #3128 from daschw/pgf-nothing

fix 'no method matching any(::Function, ::Nothing)' error in pgfplotsx
This commit is contained in:
Daniel Schwabeneder 2020-11-09 23:07:21 +01:00 committed by GitHub
commit 711754edbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -465,7 +465,7 @@ function pgfx_add_series!(::Val{:path}, axis, series_opt, series, series_func, o
pgfx_add_legend!(axis, series, opt, i)
end # for segments
# get that last marker
if !any(isnan, opt[:y]) && opt[:markershape] isa AVec
if !isnothing(opt[:y]) && !any(isnan, opt[:y]) && opt[:markershape] isa AVec
additional_plot = PGFPlotsX.PlotInc(pgfx_marker(opt, length(segments) + 1), PGFPlotsX.Coordinates(tuple((last(opt[:x]), last(opt[:y])))))
push!(axis, additional_plot)
end