From a9a5d870293271680663e37b9094a14880929447 Mon Sep 17 00:00:00 2001 From: Matthieu Gomez Date: Fri, 9 Aug 2024 02:53:45 -0400 Subject: [PATCH] correct what `@userplot` actually expands to (#355) --- docs/src/RecipesBase/types.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/RecipesBase/types.md b/docs/src/RecipesBase/types.md index a69ed9b197..f792f46f2c 100644 --- a/docs/src/RecipesBase/types.md +++ b/docs/src/RecipesBase/types.md @@ -115,6 +115,7 @@ end export myplot, myplot! myplot(args...; kw...) = plot(MyPlot(args); kw...) myplot!(args...; kw...) = plot!(MyPlot(args); kw...) +myplot!(p::AbstractPlot, args...; kw...) = plot!(p, MyPlot(args); kw...) ``` To check `args` type, define a struct with type parameters.