From: David H. <dav...@gm...> - 2006-03-08 18:39:24
|
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) <gm...@ag...>: > Hello, > I have installed python 2.4.2 with numpy and scipy installed and when I t= ry 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 t= o: > > #### 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 langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmdlnk&kid=110944&bid$1720&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |