From: John H. <jdh...@ac...> - 2004-11-17 21:21:38
|
>>>>> "Zelakiewicz," == Zelakiewicz, Scott (Research) <zel...@cr...> writes: Scott> Sorry, I should have explicitly stated most of this: Scott> This is on Redhat 9.0. I built numarray and Scott> matplotlib myself. Scott> Initially the matplotlib build had problems finding Scott> the numarray headers since I have to install Scott> everything to a non-standard place (I don't have Scott> root) and simply modifying basedir in setupext.py Scott> did not work. I made some sym-links and added to an Scott> include_dir to fix that and now there are no build Scott> problems. Scott> My .matplotlibrc is identical to the one put in Scott> share/matplotlib except numerix is set to 'numarray' Scott> and set datapath to '/local/share/matplotlib' which Scott> is where all the fonts and stuff are. If you are running interactively from the python shell, you need to make sure "interactive" is set to True in your rc file and do not use show. http://matplotlib.sourceforge.net/faq.html#SHOW Also, to work interactively, you must use either the tkagg backend or a python shell that supports threading for the GUI you are using (GTK or WX) such as ipython http://ipython.scipy.org, which has explicit support for matplotlib in the pylab mode http://matplotlib.sourceforge.net/interactive.html To test your installation, cd into the examples dir and try running simple_plot.py from the unix shell. > cd examples > python simple_plot.py OR you can choose your backend from the shell with > python simple_plot.py -dTkAgg > python simple_plot.py -dGTKAgg If that works, almost surely you have an interactive problem that will be cleared up with the links above. If now, rerun the script with --verbose-helpful and report back. Good luck, JDH |