469,582 Members | 2,468 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,582 developers. It's quick & easy.

matplotlib pylab plot() BadWindow error

I am trying to use the pylab plot command on my laptop running Ubuntu
6.06 (Dapper). Although the plot command works fine on my XP desktop
at work, I cannot open the plot window on the laptop. I edited
matplotlibrc to change interactive: to "True". In idle, I entered the
>>from pylab import *
The terminal window closed abruptly when I typed the closing
I have been warned not to use the show() command in interactive mode.
I tried:
oyinbo@oyinbo-laptop:~$ idle-python2.4 -n
In idle -n, I entered the sam two commands. This time I got an error
The program 'idle-python2.4' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 2875 error_code 3 request_code 15 minor_code
(Note to programmers: normally, X errors are reported
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error()

Using the Python prompt without idle, I got no error message, but the
window simply didn't open:

oyinbo@oyinbo-laptop:~$ python
Python 2.4.3 (#2, Mar 7 2008, 01:58:20)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more
>>from pylab import *
[<matplotlib.lines.Line2D instance at 0xb7bf04cc>]

Have I skipped a step?

Thanks for all the great information on your group.

Jun 27 '08 #1
1 2188
I have been warned not to use the show() command in interactive mode.
I can't find the error but had better luck with interactivePython ipython which shippes with a
pylab-friendly option.

Jun 28 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Martin Manns | last post: by
8 posts views Thread by Andi Clemens | last post: by
4 posts views Thread by Bill Jackson | last post: by
2 posts views Thread by Durand | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.