PyPlot doesn't work on Atom+Juno

Hi…I’m new to julia and Atom. My system is Mac OS Mojave and the version of my packages are:
The problem is that when I use PyPlot in terminal it works perfectly,
but doesn’t show any plot when using PyPlot in Atom(neither plot in plot pane or plot window shows up).
I’m so confused right now, how could this happen and what should I do to solve it?

You need to uncheck the plot pane option in the Juno settings.

You can also do pygui(true). If you then want a certain plot in the plot pane you can run gcf().


Thank you so much! It worked.

Do you mean this option?
I found that it came out the same result no matter the plot pane is enabled or not😢.

You also need to restart Julia after changing that setting, I think.

Thank you for the gcf() hint. I thought PyPlot plots can only be displayed in external windows, but not in the plot pane.

Is there a way to make plots show up in the plot pane automatically? (instead of typing plot(1:3) followed by gcf())

It really works, thank you

1 Like