[Matplotlib-users] Missing example source code

2012-03-05 Thread Oliver King
Hi,

I wanted to see the source code for an example on the Axis Artist page, 
specifically this bit of source code:
http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/figures/axis_direction_demo_step04.py

Unfortunately, I got a 404 not found error. Please would whoever is in charge 
of this fix the link? Several of the other bits of source code in this example 
are also not there.

Thanks,
Oliver
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Matplotlib detect wrong locations for libpng and libstdc++

2012-03-05 Thread Matthieu Dorier
Hello, 


I'm trying to install Matplotlib on a platform on which default libpng.so and 
libstdc++.so are installed in /usr/lib64, but does not actually correspond to 
the libraries I want to use, which have been locally installed in $HOME/local. 
Matplotlib detects the default libraries and compiles against them, how can I 
tell it to compile against my own libraries? (setting basedirlist in setup.cfg 
didn't solve the problem) 


Thanks, 


Matthieu Dorier 

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Matplotlib detect wrong locations for libpng and libstdc++

2012-03-05 Thread John Hunter
On Mon, Mar 5, 2012 at 10:11 AM, Matthieu Dorier
matthieu.dor...@irisa.frwrote:

 Hello,

 I'm trying to install Matplotlib on a platform on which default libpng.so
 and libstdc++.so are installed in /usr/lib64, but does not actually
 correspond to the libraries I want to use, which have been locally
 installed in $HOME/local. Matplotlib detects the default libraries and
 compiles against them, how can I tell it to compile against my own
 libraries? (setting basedirlist in setup.cfg didn't solve the problem)



I'm surprised setting the basedir did not work.  Are you sure you removed
the old build dir before recompiling?
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problems installaling matplotlib on ubuntu 11.10

2012-03-05 Thread avalle
 On Feb 23, 2012 1:39 PM, ava...@famaf.unc.edu.ar wrote:

 should I reinstall numpy?

 No need. You should be able to build matplotlib without sudo and then
 install with sudo

 python setup.py build
 sudo python setup.py install

Yes! This is how it should be, but it's not.

I have gone a litte further trying to solve this. I have found out the
following:

If I do an import numpy in python run as user, it works. In fact, 'python
setup.py build' works perfectly as user. But if I do an import numpy in
python run as root, I get the error I pasted in my previous message:

:~/matplotlib$ sudo python
Python 2.7.2+ (default, Oct  4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type help, copyright, credits or license for more information.
 import numpy
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/local/lib/python2.7/dist-packages/numpy/__init__.py, line
137, in module
import add_newdocs
  File /usr/local/lib/python2.7/dist-packages/numpy/add_newdocs.py, line
9, in module
from numpy.lib import add_newdoc
  File /usr/local/lib/python2.7/dist-packages/numpy/lib/__init__.py,
line 13, in module
from polynomial import *
  File /usr/local/lib/python2.7/dist-packages/numpy/lib/polynomial.py,
line 17, in module
from numpy.linalg import eigvals, lstsq
  File /usr/local/lib/python2.7/dist-packages/numpy/linalg/__init__.py,
line 48, in module
from linalg import *
  File /usr/local/lib/python2.7/dist-packages/numpy/linalg/linalg.py,
line 23, in module
from numpy.linalg import lapack_lite
ImportError: libifport.so.5: cannot open shared object file: No such file
or directory

After that I thought it must be something about this libifport.so that
numpy uses, but...

:~/matplotlib$ locate libifport
/opt/intel/Compiler/11.1/038/lib/intel64/libifport.a
/opt/intel/Compiler/11.1/038/lib/intel64/libifport.so
/opt/intel/Compiler/11.1/038/lib/intel64/libifport.so.5
:~/matplotlib$

:~$ echo $LD_LIBRARY_PATH
/opt/intel/Compiler/11.1/038/lib/intel64:/opt/intel/Compiler/11.1/038/mkl/lib/em64t
:~$ sudo -s
root@:~# echo $LD_LIBRARY_PATH
/opt/intel/Compiler/11.1/038/lib/intel64:/opt/intel/Compiler/11.1/038/mkl/lib/em64t

So I don't know why python fails to import numpy as root... and I don't
know why mpl's installer needs to import numpy to install what has already
been built.

I haven't been able to solve this issue yet. Thank you all very much for
all your help.

Cheers,
Lucia.


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problems installaling matplotlib on ubuntu 11.10

2012-03-05 Thread Benjamin Root
On Mon, Mar 5, 2012 at 1:47 PM, ava...@famaf.unc.edu.ar wrote:

  On Feb 23, 2012 1:39 PM, ava...@famaf.unc.edu.ar wrote:
 
  should I reinstall numpy?
 
  No need. You should be able to build matplotlib without sudo and then
  install with sudo
 
  python setup.py build
  sudo python setup.py install

 Yes! This is how it should be, but it's not.

 I have gone a litte further trying to solve this. I have found out the
 following:

 If I do an import numpy in python run as user, it works. In fact, 'python
 setup.py build' works perfectly as user. But if I do an import numpy in
 python run as root, I get the error I pasted in my previous message:

 :~/matplotlib$ sudo python
 Python 2.7.2+ (default, Oct  4 2011, 20:06:09)
 [GCC 4.6.1] on linux2
 Type help, copyright, credits or license for more information.
  import numpy
 Traceback (most recent call last):
   File stdin, line 1, in module
   File /usr/local/lib/python2.7/dist-packages/numpy/__init__.py, line
 137, in module
import add_newdocs
  File /usr/local/lib/python2.7/dist-packages/numpy/add_newdocs.py, line
 9, in module
from numpy.lib import add_newdoc
  File /usr/local/lib/python2.7/dist-packages/numpy/lib/__init__.py,
 line 13, in module
from polynomial import *
  File /usr/local/lib/python2.7/dist-packages/numpy/lib/polynomial.py,
 line 17, in module
from numpy.linalg import eigvals, lstsq
  File /usr/local/lib/python2.7/dist-packages/numpy/linalg/__init__.py,
 line 48, in module
from linalg import *
  File /usr/local/lib/python2.7/dist-packages/numpy/linalg/linalg.py,
 line 23, in module
from numpy.linalg import lapack_lite
 ImportError: libifport.so.5: cannot open shared object file: No such file
 or directory

 After that I thought it must be something about this libifport.so that
 numpy uses, but...

 :~/matplotlib$ locate libifport
 /opt/intel/Compiler/11.1/038/lib/intel64/libifport.a
 /opt/intel/Compiler/11.1/038/lib/intel64/libifport.so
 /opt/intel/Compiler/11.1/038/lib/intel64/libifport.so.5
 :~/matplotlib$

 :~$ echo $LD_LIBRARY_PATH

 /opt/intel/Compiler/11.1/038/lib/intel64:/opt/intel/Compiler/11.1/038/mkl/lib/em64t
 :~$ sudo -s
 root@:~# echo $LD_LIBRARY_PATH

 /opt/intel/Compiler/11.1/038/lib/intel64:/opt/intel/Compiler/11.1/038/mkl/lib/em64t

 So I don't know why python fails to import numpy as root... and I don't
 know why mpl's installer needs to import numpy to install what has already
 been built.

 I haven't been able to solve this issue yet. Thank you all very much for
 all your help.

 Cheers,
 Lucia.



Part of the build process imports numpy in order to check its version (I
think).  But the bigger question is why it fails as root.  That is very odd.

Perhaps you should post that question for the numpy mailing list?

Cheers!
Ben Root
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] backend with edition capabilities

2012-03-05 Thread Federico Ariza
Hi

As I thought, this is a tricky subject.

So far I just opened a github account and added the three files that I am
using.
https://github.com/fariza/MPL-Experimental-Backend
I have tested this on linux, I do not know if it works on windows.

I know glade is not the right way to do it if I want this to be taken
serously.
So far the only thing I want is to experiment and see what subset of
actions are needed by most people.

The code is ugly but if this is something that more people find useful, I
will do something about that, if not I will keep it to myself and my
personal use.

Thanks
Federico


P.S. The group expander is because I have personal need of line group
management
P.S.2. The toolbar will be modified to be unified among all the figures
P.S.3. The figures are arranged in a notebook because I hate having
multiple open windows from the same source.
P.S.4. I am thinking on adding a shell with all the figure and line
instances ready to be modified by hand.

On Wed, Feb 29, 2012 at 5:02 PM, Federico Ariza ariza.feder...@gmail.comwrote:

 Dear all

 I am a long time matplotlib user  (under linux) but new to the list
 (second post).

 On of the things that bothers me the most is the inability of the standard
 backend to change simple things (line color, labels, etc...).

 I resorted to create a simple FrankeinBackend (based on the GtkAgg)
 I guess I am not the only one missing this kind of features or
 experimenting with similar ideas.

 Some points comes to my mind:
 Is there any special place where we can share and discuss this?
 Is it better if I just open a googlecode place for my code.?
 This is a recurring question and I have no idea what I am talking about
 This is already done I am reinventing the wheel

 Thanks
 Federico

 --
 Y yo que culpa tengo de que ellas se crean todo lo que yo les digo?

 -- Antonio Alducin --




-- 
Y yo que culpa tengo de que ellas se crean todo lo que yo les digo?

-- Antonio Alducin --
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users