[SciPy-User] X Error: BadWindow, matplotlib, numpy

Samuel John scipy@samueljohn...
Mon Sep 26 11:04:51 CDT 2011

On 26.09.2011, at 17:44, Oleksandr Huziy wrote:

> Hi,
> I found this link concerning the error
> http://www.linuxquestions.org/questions/linux-desktop-74/how-can-i-fix-error-badwindow-invalid-window-parameter-575745/
> try it on gnome, maybe it is kde's problem.

So, what this means is basically:

import matplotlib
matplotlib.use('GTK') # or perhaps 'GTKAgg'. Your default probably is 'TkAgg'

from matplotlib import pyplot

pyplot.plot([1,2,1]) # whatever

#now close the window


More information about the SciPy-User mailing list