Discussion:
[SciPy-User] X Error: BadWindow, matplotlib, numpy
Wolfgang Mader
2011-09-26 14:14:50 UTC
Permalink
Hallo,

sometimes when I close a matplotlib window by clicking the [x] in the window
decoration I get this in my ipython prompt

X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20 (X_GetProperty)
Resource id: 0x6e00db6


I am using python 2.7.2, matplotlib 1.0.1-2, and numpy 1.6.1-1. What causes
this?

By the way. Is there matplotlib for python3 or any plans for this?

Thank you,
Wolfgang
Samuel John
2011-09-26 15:16:18 UTC
Permalink
Hi Wolfgang,

matplotlib for python3 is not yet ready.
There has been a successful codesprint: http://pythonsprints.com/2011/04/8/matplotlib-python-3-thanks-cape-town-group/

I am not sure what the current status is. Perhaps the matplotlib mailing list can answer better: http://sourceforge.net/mail/?group_id=80706

Concerning the "X Error: BadWindow" - I cannot help (could not reproduce it)
At least you should provide some information about operating system and the windowing backend you are using.
I guess, the matplotlib mailing list can be of better help here, too.


Bests,
Samuel




Samuel
--
Dipl.-Inform. Samuel John
- - - - - - - - - - - - - - - - - - - - - - - - -
PhD student, CoR-Lab(.de) and
Neuroinformatics Group, Faculty
of Technology, D33594 Bielefeld
in cooperation with the HONDA
Research Institute Europe GmbH

***@samueljohn.de
***@cor-lab.uni-bielefeld.de
IM: ***@jabber.org
- - - - - - - - - - - - - - - - - - - - - - - - -
Wolfgang Mader
2011-09-26 15:24:12 UTC
Permalink
Post by Samuel John
Concerning the "X Error: BadWindow" - I cannot help (could not reproduce it)
At least you should provide some information about operating system and the
windowing backend you are using. I guess, the matplotlib mailing list can
be of better help here, too.
Thank you for your answer and for pointing me to the matploblib mailinglist.

Just to make my first mail more complete. The problem is on a linux box (Arch
Linux, kernel 3.0, xorg 1.10.4-1, KDE, kwin window manager).

Bests, Wolfgang
Oleksandr Huziy
2011-09-26 15:44:51 UTC
Permalink
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.
--
Oleksandr Huziy
Post by Wolfgang Mader
Post by Samuel John
Concerning the "X Error: BadWindow" - I cannot help (could not reproduce
it)
Post by Samuel John
At least you should provide some information about operating system and
the
Post by Samuel John
windowing backend you are using. I guess, the matplotlib mailing list can
be of better help here, too.
Thank you for your answer and for pointing me to the matploblib mailinglist.
Just to make my first mail more complete. The problem is on a linux box (Arch
Linux, kernel 3.0, xorg 1.10.4-1, KDE, kwin window manager).
Bests, Wolfgang
_______________________________________________
SciPy-User mailing list
http://mail.scipy.org/mailman/listinfo/scipy-user
Samuel John
2011-09-26 16:04:51 UTC
Permalink
Post by Oleksandr Huziy
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

Loading...