|
From: <Fer...@co...> - 2005-05-14 21:21:10
|
Quoting John Hunter <jdh...@ni...>:
> Well, I'll be damned. I really can't believe this hasn't cropped up
> before -- it's a real bug.
>
> The errant code is in matplotlib/backends/__init___.py
>
> # Import the requested backend into a generic module object
> backend_name = 'backend_'+backend.lower()
> backend_mod = __import__('matplotlib.backends.'+backend_name,
> globals(),locals(),[backend_name])
>
> Where the default backend is being imported. These changes were
> introduced many moons ago by Fernando when he was cleaning up the
> backend import for ipython/pylab. Then need top be moved to a
> function or otherwise deferred until pylab asks for them, to prevent
> the kind of problem you are seeing.
sorry 'bout that, a pure effect of my modifying code in an overall system (the
mpl OO structure) I knew nothing about...
Cheers,
f
|