I can not get matplotlib to work on a windows xp professional machine

Hello,
I have installed python 2.4.2 with numpy and scipy installed and when I try to import pylab, I get:
python.exe has encountered a problem and needs to close. We are sorry for the inconvenience.

Has any one seen this issue? I just started using python so am not sure what to do. I installed pygtk and freetype and set the matplotlibrc file to:

#### CONFIGURATION BEGINS HERE
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
# Agg Cairo GD GDK Paint PS SVG Template
backend : GTKAgg
numerix : numpy # numpy, Numeric or numarray

I really would like to use matplotlib but need help solving this problem if any one can help it sure would be great!

Regards

Gary Mitchell

Hi Gary,

What python ide are you using ? The interactive usage of matplotlib
only works for certain editors, and it depends on what backend you
use. The editor that most (I think) people use on this list is
ipython, which has been designed to work with matplotlib and has a
number of very useful features. From what I understand, executing
ipython with the -pylab flag tells ipython to import pylab and tells
it how to deal with figure windows popping out.

If you don't want to use Ipython, you could change the backend to Agg,
which is non interactive (figures won't pop up), save figures to a
file and open it with a viewer. For instance, the following should
work from any ide.

from pylab import *
plot([1,2,3])
title('test')
savefig('test')

To use the interactive mode, you'll have to use an editor supporting
matplotlib. This is discussed in the user's guide.

Good luck

David

2006/3/8, Mitchell, Gary (Gary) <gm1@...1029...>:

ยทยทยท

Hello,
I have installed python 2.4.2 with numpy and scipy installed and when I try to import pylab, I get:
python.exe has encountered a problem and needs to close. We are sorry for the inconvenience.

Has any one seen this issue? I just started using python so am not sure what to do. I installed pygtk and freetype and set the matplotlibrc file to:

#### CONFIGURATION BEGINS HERE
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
# Agg Cairo GD GDK Paint PS SVG Template
backend : GTKAgg
numerix : numpy # numpy, Numeric or numarray

I really would like to use matplotlib but need help solving this problem if any one can help it sure would be great!

Regards

Gary Mitchell

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users