I don’t think this is a recipe issue but with how the function is defined. Use the where
syntax:
@recipe function plot(xs::AbstractVector, ys::AbstractVector{T}) where T<:Errorful
:yerr --> getfield.(ys, :std)
xs, getfield.(ys, :val)
end
You may have std
and value
functions and your Errorful
might be parametric, as implied by your code, but I am basing this on your MWE (hence the getfield
etc).