But after Pkg.up GR was updated. Pkg.build (after a few tries) did not result in errors but:
julia> using Plots
julia> plot( cumsum(rand(10)))
ERROR: error compiling _plot!: error compiling _display: could not load library "libGR.so"
libGR.so: cannot open shared object file: No such file or directory
Stacktrace:
[1] #plot#136(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Array{Float64,1}) at /home/js/.julia/packages/Plots/ex9On/src/plot.jl:57
[2] plot(::Array{Float64,1}) at /home/js/.julia/packages/Plots/ex9On/src/plot.jl:51
[3] top-level scope at none:0
Please download the latest run-time (for your platform) using
ENV["GRDIR"] = ""
Pkg.build("GR")
I still have no idea, why the latter is required on some system - there were several users complaining about that, but the above step should fix the problem …
@MA_Laforge, @sdanisch, does Plots work with the packages? Not yet, I guess? Seems the only backend working with Plots is GR now, is it correct? Should I be better off relying on Plots, or going direct with individual packages? I really would like to try my script with InspectDR or Makie based on reported interactivity.
@LeoK987: There are different opinions about whether Plots.jl should be considered “the one an only” plotting interface. Thus you have to make you own experiences. I am personally only using Winston+Gtk for interactive use and PyPlot for publication ready things.
I had been using Winston in the very early days (probably during Julia 0.3), and it was nice, but with some later version of Julia, Winston totally stopped working as if abandoned, so I switched to Plots with GR. So now it resurrected.
Its true that Winston is not been actively developed currently. However, I use it very actively and have ported Winston to 1.0 (together with @ararslan). Thus if you were satisfied with Winston before, there should be no reason that it destabilizes again.
I have not looked closely to InspectDR but it might be interesting to compare Winston and InspectDR in order to look if they could be combined. Both use the same technology (Cairo + Gtk).
@LeoK987: Yes, InspectDR is now working with Plots as well.
A few notes:
There is a known issue where the alpha values (transparency) are not being used to draw markers & lines. This is fixed only in the master branch, and will be available the next time Plots.jl gets tagged with a new version.
InspectDR does write out a message “InspectDR not known to be compatible with current version of Plots.jl.” Please ignore the message. I simply have not yet “told” InspectDR that it is compatible with Plots.jl.
At this point, if you are having issues getting InspectDR to work with Plots.jl, please let me know somehow - preferably by opening an issue on Github.