I had to alter the following lines from backend_gtkcairo,
> import matplotlib.backends.backend_cairo as be_cairo from
> matplotlib.backends.backend_gtk import *
> line 11, in ? import matplotlib.backends.backend_cairo as
> be_cairo AttributeError: 'module' object has no attribute
My guess is that you were running your test code in which there was a
"matplotlib" dir that was not *the* matplotlib install dir.