[ANN] Releasing RecipesBase 1.0 and Plots 1.0 (please read)

using Plots

struct MyType
    v::Float64
end
getval(mt) = mt.v

@recipe function f(::Type{T}, mtv::T) where T <: AbstractArray{<:MyType}
    guide --> "MyType axis"
    formatter --> x -> string("MyType(", round(x, digits = 6), ")")
    getval.(mtv)
end
plot(MyType.(rand(10)))

mytype_1

plot(MyType.(1:10), rand(10))

mytype_2

or Implement zerror and surface type recipe fixes by daschw · Pull Request #2548 · JuliaPlots/Plots.jl · GitHub

2 Likes