Hi,

First: I usually find PyPlot very robust... but am having trouble lately 
(sounds similar to your problems).

*I try to keep my environment simple/clean:*
Xubuntu 14.04
+Install Anaconda 2.4.1 (Newer version)
+Install Julia 0.4 using :

sudo add-apt-repository ppa:staticfloat/juliareleases
sudo apt-get update
sudo apt-get install julia

Anyways, it seems like PyPlot is having issues working with certain 
combinations of numpy, matplotlib, and the graphic systems (looking at the 
compile error messages).

*My Solution*
After playing around a bit, I got PyPlot to work by using the following 
combination:

conda install numpy=1.9.2 matplotlib=1.4

Though it seems like specifying an older cairo can help sometimes
conda install numpy=1.9.2 cairo=1.12.2 matplotlib=1.4

NOTE: This solution seems very similar to the solution from Daniel Høegh:
https://groups.google.com/d/msg/julia-users/kZQrK8-nmQ8/4NfSNGSRAwAJ
("PyPlot not working on 0.4.0")

...But his solution does not work for me.

*Comments*
I do not really understand the root cause of this issue, but I can say the 
following:


   1. Installing numpy 1.9.3 or higher breaks my PyPlot.
   2. Installing matplotlib 1.5 breaks my PyPlot.
   3. "conda install" seems to work better if you sepcify all simultaneous 
   requirements in a single statement.
   
*Debug Tips*

I can quickly determine if my Anaconda/PyPlot solution is working, by using the 
following steps:


   1. Change the active group of python packages
   conda install ...
   2. Rebuild pyplot & try loading it (which compiles as well):
   Pkg.build("PyPlot")
   using PyPlot #Re-compilation might/might not fail
   
   

Reply via email to