Plotting problems with Mac M1

Hi All,

I’m migrating to a Mac M1. I’ve installed julia 1.8.5 (2023-01-08) from julialang.org. Added my favorite packages using Pkg, among which is Plots.jl.

This input in the REPL:

    using Plots
    gr();
    x = [0:pi/100:2*pi;];
    y = sin.(x);
    plot(x,y)

gives me this output:

    Plot{Plots.GRBackend() n=1}

but no actual plot. I assume there’s some simple piece missing, but I have no idea where to begin. Help?

Thanks,
-Eric

I can’t add much other than to say that I tested your inputs in a REPL on my M1 MBP and it worked as expected. I got the plot in a new window and did not get the “Plot{Plots.GRBackend() n=1}”

I wish I could help more but I have just started down this road as well.

Did you get any messages when installing the packages? Running your code on my M1 yields

running on

  [91a5bcdd] Plots v1.38.9

So, what does ] status report? (or, to be precise ] switches to package mode and on pkg> you type status).

Status ~/.julia/environments/v1.8/Project.toml
[8f4d0f93] Conda v1.8.0
[e9467ef8] GLMakie v0.8.4
[28b8d3ca] GR v0.72.0
[7073ff75] IJulia v1.24.0
[18364772] IPython v0.5.1
[6218d12a] ImageMagick v1.2.2
[682c06a0] JSON v0.21.3
[23992714] MAT v0.10.4
[ee78f7c6] Makie v0.19.4
[a03496cd] PlotlyBase v0.8.19
[f2990250] PlotlyKaleido v1.0.0
[91a5bcdd] Plots v1.38.9
[438e738f] PyCall v1.95.1
[24249f21] SymPy v1.1.8

Hm, mainly fishing in the dark, what does removing and adding Plots again report? Or Plots and GR? Usually adding/rebuliding packages should do the binding to the window manager and such, but I (on my M1) never had, that that failed and for now a main thing would try to find an error message somewhere.