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)))
plot(MyType.(1:10), rand(10))