Could you please help debugging this simple issue I am having trying to define a user plot recipe?
module FooPlots
using RecipesBase
@userplot FooPlot
@recipe function f(dr::FooPlot)
# code goes here
end
end
using Plots
using FooPlots
fooplot()
ERROR: UndefVarError: plot not defined
Stacktrace:
[1] #fooplot#1(::Array{Any,1}, ::Function) at /home/juliohm/.julia/v0.6/RecipesBase/src/RecipesBase.jl:340
[2] fooplot() at /home/juliohm/.julia/v0.6/RecipesBase/src/RecipesBase.jl:340
What is missing?