diff --git a/RecipesPipeline/src/user_recipe.jl b/RecipesPipeline/src/user_recipe.jl index a7b99327c..82424e63f 100644 --- a/RecipesPipeline/src/user_recipe.jl +++ b/RecipesPipeline/src/user_recipe.jl @@ -333,3 +333,16 @@ end # list of tuples @recipe f(v::AVec{<:Tuple}) = unzip(v) @recipe f(tup::Tuple) = [tup] + +# list of NamedTuples +@recipe function f(ntv::AVec{<:NamedTuple{K, Tuple{S, T}}}) where {K, S, T} + xguide --> string(K[1]) + yguide --> string(K[2]) + return Tuple.(ntv) +end +@recipe function f(ntv::AVec{<:NamedTuple{K, Tuple{R, S, T}}}) where {K, R, S, T} + xguide --> string(K[1]) + yguide --> string(K[2]) + zguide --> string(K[3]) + return Tuple.(ntv) +end