Merge pull request #3128 from daschw/pgf-nothing
fix 'no method matching any(::Function, ::Nothing)' error in pgfplotsx
This commit is contained in:
commit
711754edbc
@ -465,7 +465,7 @@ function pgfx_add_series!(::Val{:path}, axis, series_opt, series, series_func, o
|
|||||||
pgfx_add_legend!(axis, series, opt, i)
|
pgfx_add_legend!(axis, series, opt, i)
|
||||||
end # for segments
|
end # for segments
|
||||||
# get that last marker
|
# 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])))))
|
additional_plot = PGFPlotsX.PlotInc(pgfx_marker(opt, length(segments) + 1), PGFPlotsX.Coordinates(tuple((last(opt[:x]), last(opt[:y])))))
|
||||||
push!(axis, additional_plot)
|
push!(axis, additional_plot)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user