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.