Thanks! Ok... getting close, but not quite there:
Deleting ~/.cache/matplotlib and even ~/.cache/fontconfig didn't work for
me, but I figured out how to use Conda.jl to install matplotlib separately.
So I did this:
$ sudo apt-get remove python-matplotlib
$ julia
julia> Pkg.add("Conda")
julia> using Conda
julia> Conda.add("matplotlib")
julia> ENV["PYTHON"] = "/home/daniel/.julia/v0.5/Conda/deps/usr/bin/python"
julia> Pkg.add("PyPlot")
julia> using PyPlot
Up to this point there are no errors! But this is what happens next:
julia> plot( [1,2,3], [4,5,6] )
ERROR: ArgumentError: haskey of NULL PyObject
in haskey(::PyCall.PyObject, ::String) at
/home/daniel/.julia/v0.5/PyCall/src/PyCall.jl:282
in #plot#85(::Array{Any,1}, ::Function, ::Array{Int64,1},
::Vararg{Array{Int64,1},N}) at
/home/daniel/.julia/v0.5/PyPlot/src/PyPlot.jl:396
in plot(::Array{Int64,1}, ::Vararg{Array{Int64,1},N}) at
/home/daniel/.julia/v0.5/PyPlot/src/PyPlot.jl:396
I partially understand the error. I'll experiment a bit more to see if I
can resolve it, but I thought you'd like to know about it.
Cheers,
Daniel.
so I think I'll switch to Conda Python. I figured out how to use Conda.jl
to get a separate matplotlib install
On Wednesday, 2 November 2016 15:29:31 UTC+1, Steven G. Johnson wrote:
>
> For the font-cache, see
> https://github.com/matplotlib/matplotlib/issues/5836
> ...there is some ~/.cache/matplotlib directory that you can delete to get
> rid of this.
>
> To tell PyPlot to use the Conda Python, you need to set the PYTHON
> environment variable and re-build PyCall:
>
> ENV["PYTHON"]=""
> Pkg.build("PyCall")
>