Bus error on multiple hist plots

I get a repeatable bus error when trying to plot more than
one histogram of simulated data. The first plot is generated
without error, but invariably a second plot crashes:

In [4]: x = random.negative_binomial(2, 0.25, 1000)

In [5]: from pylab import *

In [6]: hist(x)
Out[6]:
(array([240, 318, 206, 102, 65, 38, 17, 5, 6, 3]),
array([ 0., 3., 6., 9., 12., 15., 18., 21., 24., 27.]),
<a list of 10 Patch objects>)

In [7]: show()

In [8]: x = random.negative_binomial(2, 0.5, 1000)

In [9]: hist(x)
Bus error

This is using recent svn builds of numpy and maplotlib.

Hi Chris,

This just came up I think a day or so ago. Are you using TkAgg as your backend, and are you closing the plot window in between the two histograms?

Try updating from svn, Andrew just fixed a bug.

David

···

On 14-Jul-07, at 2:05 PM, Chris Fonnesbeck wrote:

I get a repeatable bus error when trying to plot more than
one histogram of simulated data. The first plot is generated
without error, but invariably a second plot crashes:

In [4]: x = random.negative_binomial(2, 0.25, 1000)

In [5]: from pylab import *

In [6]: hist(x)
Out[6]:
(array([240, 318, 206, 102, 65, 38, 17, 5, 6, 3]),
array([ 0., 3., 6., 9., 12., 15., 18., 21., 24., 27.]),
<a list of 10 Patch objects>)

In [7]: show()

In [8]: x = random.negative_binomial(2, 0.5, 1000)

In [9]: hist(x)
Bus error

This is using recent svn builds of numpy and maplotlib.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Hi Chris,

This just came up I think a day or so ago. Are you using TkAgg as your backend,

I am using TkAgg

and are you closing the plot window in between the two histograms?

Yes.

Try updating from svn, Andrew just fixed a bug.

Will try, thanks.

···

On Jul 14, 2007, at 3:43 PM, David Warde-Farley wrote:

--
Christopher Fonnesbeck
+ Atlanta, GA
+ fonnesbeck at mac dot com
+ Contact me on AOL IM using email address

In particular, you need to make sure you remove your build directory
and your install directory, get the latest svn, and do a clean
rebuild.

JDH

···

On 7/14/07, David Warde-Farley <dwf@...386...> wrote:

> Bus error
>
> This is using recent svn builds of numpy and maplotlib.