From: John H. <jd...@gm...> - 2008-07-01 13:38:12
|
On Tue, Jul 1, 2008 at 5:31 AM, Nicolas Rougier <Nic...@lo...> wrote: > There is now a installable package (pycons.tgz) available from: > > http://www.loria.fr/~rougier/pycons.html Cool, this is working for me now. Very nice. Two more comments: You must override draw_if_interactive *before* importing pylab: import matplotlib.backends.backend_gtkagg as backend_gtkagg def draw_if_interactive(): """ Is called after every pylab drawing command """ show(console) # do this before importing pylab backend_gtkagg.draw_if_interactive = draw_if_interactive import pylab import matplotlib.pylab from matplotlib._pylab_helpers import Gcf and when I run in --pylab mode, the pylab namespace is not imported. I have to manually 'from pylab import *' . Is that intentional? |