If you want to display your PyPlot plots in Atom with Juno (without changing the settings), you could also add
gcf()
at the end of your plotting code. As mentioned in PyPlot cannot be used in Juno, stopped by @zhangliye.
Additionally, clf()
is also useful to clear the plot.