I'm trying to build a scatter plot in Julia 1.3 and found those example there
using Plots
scatter( 1:16, sqrt.(1:16), labels="Square Root", size=[600,240] )
ERROR: LoadError: UndefVarError: scatter not defined
Stacktrace:
[1] top-level scope at /Users/...:19
[2] include at ./boot.jl:328 [inlined]
[3] include_relative(::Module, ::String) at ./loading.jl:1105
[4] include(::Module, ::String) at ./Base.jl:31
[5] include(::String) at ./client.jl:424
[6] top-level scope at REPL[22]:1
in expression starting at /Users/...:19
I also tried an example from the official Plot documentaiton, but got a similar error message:
using Plots
l = @layout [ a{0.3w} [grid(3,3)
b{0.2h} ]]
plot(
rand(10,11),
layout = l, legend = false, seriestype = [:bar :scatter :path],
title = ["($i)" for j = 1:1, i=1:11], titleloc = :right, titlefont = fo
)
ERROR: LoadError: UndefVarError: grid not defined
Stacktrace:
[1] top-level scope at /Users/mymac/.julia/packages/Plots/2KhB2/src/layouts.jl:671
[2] include at ./boot.jl:328 [inlined]
[3] include_relative(::Module, ::String) at ./loading.jl:1105
[4] include(::Module, ::String) at ./Base.jl:31
[5] include(::String) at ./client.jl:424
[6] top-level scope at REPL[22]:1
in expression starting at /Users/...:10
I tried to remove and re-install Plots
with using Pkg; Pkg.rm("Plots")
and using Pkg; Pkg.add("Plots")
, but it didn't solve the problem
It seems that some of the functions of Plots are not defined/found by Julia
What am I doing wrong?
rm Plots
build
resolve
up
and such just to try and clean out any weirdness that is causing this issue. – logankilpatrick