Plots + GR backend in Atom

I just switched from JuliaPro to Julia 0.7+Atom.
When i type ‘using Plots’ I get this message

Warning: Package GR does not have Atom in its dependencies:
│ - If you have GR checked out for development and have
│ added Atom as a dependency but haven’t updated your primary
│ environment’s manifest file, try Pkg.resolve().
│ - Otherwise you may need to report an issue with GR
└ Loading Atom into GR from project dependency, future warnings for GR are suppressed.

Then, if I try to plot, say, a vector, nothing appears except messages like:

Plot{Plots.GRBackend() n=1}

How can I fix this?

Just to add some detail: plot() works in a Julia Terminal

The display problem is fixed in GR master, but the warning is still there. As soon as I have fixed the warning message, I’ll tag a new GR version.

What is GR master? Meaning, is there a way I can use GR on Atom now? Thanks

You could use pkg> add GR#master to get the development version (also know as master branch) of GR.

I see. Is there any alternative to ‘Plots’ that is already working in Atom with Julia 0.7?

Plots is working, you just need the master branch of GR, or you can try one of the other back ends (I think PyPlot is working?). Some other plotting packages: gadfly, vegalite.jl, unicodeplots, though I’m not sure which are working on 1.0 (though most should be working on 0.7, with deprecation warnings)

Plots wraps different backends for the ploting, GR is just one of them. Try PyPlot. I didn’t check if it work though.

I didn’t really understand how and where to install GR#master, but PyPlot works once you follow the instructions here


before typing Pkg.add(“PyPlot”)

1 Like