Hello Julia experts,
Please help me get a plot.
I am almost done with my first assignment using Julia and got to a stage where I need at least a plot.
My code for the plotting is:
x = Rating_count.Ratings; y = Rating_count.count;
plot(x, y, title = “The great title.”,
label = [“Number of something”], lw =3)
xlabel!(“Ratings”)
ylabel!(“Count of something”)
This is weird. I’ve been using 1.7.3 since it arrived. I use plotting every day on around 100 Pluto notebooks. I haven’t changed configurations. I last used Pluto and plotting 2 days ago, but this morning I sat down to do some work and got this on the first Pluto notebook I opened:
Failed to show value:
could not load library “libGR.so”
dlopen(libGR.so.dylib, 0x0001): tried: ‘/Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libGR.so.dylib’ (no such file), …
If it helps, I think I was hit in Win11 Julia 1.7.3 by a similar problem when trying to plot with gr() backend, getting: ERROR: could not load library "libGR.dll.
The problem was that the project environment had old versions of Plots.jl and GR.jl installed, and I couldn’t update them as compatibility with some other package was blocking it.
By forcing an update, we can see which package was blocking the update of Plots.jl: ] add Plots@1.31.2
I removed the problematic package and did update and rebuild in the package manager. Then I restarted and voilà, Plots.jl was back in business.