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

Samuel John scipy at samueljohn.de
Mon Sep 26 12:04:51 EDT 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
pyplot.show()

#now close the window
````

--
 Samuel


More information about the SciPy-User mailing list