RecipesBase.jl
RecipesBase.jl copied to clipboard
no method matching @series(::Symbol)
I just want to register this odd error and solution:
type A end
@recipe function f(x::A)
rand(10)
end
@recipe function f(xs::Vector{A})
for x in xs
@series x
end
end
Results in
MethodError: no method matching @series(::Symbol)
For the record, there are several workarounds, one of them being:
@recipe function f(xs::Vector{A})
for x in xs
@series identity(x)
end
end