My environment is Windows 10 with
using Pkg
println("Julia v", VERSION)
Pkg.status("IJulia")
Pkg.status("PyCall"; mode = PKGMODE_MANIFEST)
Pkg.status("Plots")
Pkg.status("PyPlot")
Pkg.status("Plotly")
Pkg.status("StaticArrays")
Pkg.status("Parameters")
↓
Julia v1.6.2
Status `D:\.julia\environments\v1.6\Project.toml`
[7073ff75] IJulia v1.23.2
Status `D:\.julia\environments\v1.6\Manifest.toml`
[438e738f] PyCall v1.92.3
Status `D:\.julia\environments\v1.6\Project.toml`
[91a5bcdd] Plots v1.20.1
Status `D:\.julia\environments\v1.6\Project.toml`
[d330b81b] PyPlot v2.9.0
Status `D:\.julia\environments\v1.6\Project.toml`
[58dd65bb] Plotly v0.4.0
Status `D:\.julia\environments\v1.6\Project.toml`
[90137ffa] StaticArrays v1.2.12
Status `D:\.julia\environments\v1.6\Project.toml`
[d96e819e] Parameters v0.12.2
I use Plots.jl v1.20.1 installed in the directory
D:\.julia\packages\Plots\HcxwM
But your Plots.jl directory is
C:\Users\Hermesr\.julia\packages\Plots\hyS17
Your hyS17 is not equal to my HcxwM.
Probably you are using an older version of Plots.jl due to conflicts with other packages.
First, upgrade installed packages by
pkg> up
and check if Plots.jl is upgraded to version ≥ v1.20.1 or not.
If not, restart Julia in an empty directory and run
pkg> activate .
pkg> add Plots
pkg> status
Confirm the version of Plots.jl is ≥ v1.20.1. Then try to run my code.