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

no method matching @series(::Symbol)

Open arturgower opened this issue 8 years ago • 3 comments

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

arturgower avatar Dec 12 '17 15:12 arturgower