Hello,
I am trying to learn Julia. When I type in the basic plotting example given at
Tutorial · Plots, namely the code below copied directly
from the link given above.
import Pkg; Pkg.add(“Plots”)
using Plots
x = 1:10; y = rand(10); # These are the plotting data
plot(x, y)
I obtain no plot and the following error.
Error evaluating PlotExampleDoesNotWork.jl
LoadError: UndefVarError: plot not defined
in expression starting at /private/tmp/PlotExampleDoesNotWork.jl:4
top-level scope at PlotExampleDoesNotWork.jl:4
include_string(::Function, ::Module, ::String, ::String) at loading.jl:1088
I get the same error with or without the first line: import Pkg; Pkg.add(“Plots”)
What am I missing ?
Thank you and my apologies for such a basic question.
3 posts - 3 participants