You are not logged in.
i am using python 2.5 and i've install python-matplotlib adn all its depencies by using pacman. but i didn't work properly.
from pylab import *
plot([1,2,3])
show()
this code is tutorial about matplotlib but when i use this codes it always return me as a segmentation fault, after all i tried python tut.py --verbose-helpful command to learn problem but i noticed any problem.
[titus@blackbox ~]$ python tut.py --verbose-helpful
matplotlib data path
/usr/lib/python2.5/site-packages/matplotlib/mpl-data
$HOME=/home/titus
CONFIGDIR=/home/titus/.matplotlib
loaded rc file
/usr/lib/python2.5/site-packages/matplotlib/mpl-data/matplotlibrc
matplotlib version 0.90.0
verbose.level helpful
interactive is False
platform is linux2
numerix Numeric 24.2
font search path
['/usr/lib/python2.5/site-packages/matplotlib/mpl-data']
loaded ttfcache file /home/titus/.matplotlib/ttffont.cache
backend TkAgg version 8.4
Segmentation fault
do you have any ideas about this? how can i fix this?
In a world without walls,who need windows?
Offline
I'm still waiting for your advice, please it's important for my final project.
In a world without walls,who need windows?
Offline
Hi Titus,
I had the same problem. python-matplotlib from community is built against Numeric and not numpy. I think it should be numpy since everything else is dead.
Also, it uses TkAgg as its default backend. The one I prefer is GTKAgg. Try to set this in /usr/lib/python2.5/site-packages/matplotlib/mpl-data/matplotlibrc (line 29)
If that doesn't work, try recompiling matplotlib. See my comments in AUR's entry for this http://aur.archlinux.org/packages.php?d … =1&ID=9133
Good luck.
Offline
Recompiling python-mathplot does not work currently, since the bindings used are not compatible with wxPython 2.8. That's probably also the compiled segmentation fault, since the wxString/wxImage pointer conversion done by SWIG, which isn't supported anymore.
I've played around yesterday patching it, but didn't get far enough, simply didn't have enough time.
//STi
Last edited by STiAT (2007-05-16 21:44:50)
Ability is nothing without opportunity.
Offline
Recompiling python-mathplot does not work currently
It does here. Using GTKAgg and numpy as backend.
Offline
I would also like to see matplotlib recompiled, therefore I have written a bug report: http://bugs.archlinux.org/task/7183
Maybe if anyone provided a modified PKGBUILD to the bugtracker, the process would be faster.
Offline
Romashka closed the bug #7183
I don't know the reason.
You can see on the aur's entry a modified package and a patch for numpy+GTKAgg (see my comment)
Offline