|
From: Chris B. <Chr...@no...> - 2005-02-09 23:22:36
|
Cindy Hodgins Burian wrote:
> If I
> change "BUILD_GTKAGG = 0" it compiles with some complaints like
This will keep it form building the GTKAGG back end...do you need that?
> >>> import pylab
> from _gtkagg import agg_to_gtk_drawable
You're getting this error because you don't have the GTKAGG back end,
which makes sense, as you told setup.py not to build it.
The problem is that your matplotlibrc file sets gtkagg as the default
back end. First, try this:
>>> import matplotlib
>>> matplotlib.use('Agg')
>>> import pylab
If that works, then you seem to have a working matplotlib with the Agg
back end. If you generating plots that you want to save as PNG and use
ion a wed site or something, you're done. You should also be able to use
it with wxPython. Tkinter may also work. If you do need the PyGTK back
end, I can't help you, except to say that make sure you have PyGTK
working first.
To change the default back end, edit matplotlibrc:
http://matplotlib.sf.net/.matplotlibrc
Good luck,
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
|