Bus error when using logarithmic scale with logaritmic bins

Dear colleagues,

I'm trying to display an histogram with logarithmic bins using the
logarithmic scale in the x-axis. When I execute the attached python
script it crashes giving a "Bus Error" message (see also the attached
core dump).

If I remove the line "plt.xscale('log')" the script goes up to the end.

I'm running the program on MacOS 10.6.8, Python 2.5, numpy 1.2.1, and
matplotlib 0.98.5.2.

Anyone knows the reason of the crash?

Thanks,
marc

core.txt (35 KB)

pylab_bug.py (171 Bytes)

Dear colleagues,

I'm trying to display an histogram with logarithmic bins using the
logarithmic scale in the x-axis. When I execute the attached python
script it crashes giving a "Bus Error" message (see also the attached
core dump).

If I remove the line "plt.xscale('log')" the script goes up to the end.

I'm running the program on MacOS 10.6.8, Python 2.5, numpy 1.2.1, and
matplotlib 0.98.5.2.

Anyone knows the reason of the crash?

Thanks,
marc

core.txt (35 KB)

pylab_bug.py (171 Bytes)

If I remember correctly, there was a log-scale bug in plt.hist() that got fixed a little while back. Your version of numpy and matplotlib is a little old. Is it possible to update those two packages on your system?

Ben Root

···

On Wed, Aug 10, 2011 at 12:32 PM, Marc Magrans de Abril <marcmagransdeabril@…287…> wrote:

Dear colleagues,

I’m trying to display an histogram with logarithmic bins using the

logarithmic scale in the x-axis. When I execute the attached python

script it crashes giving a “Bus Error” message (see also the attached

core dump).

If I remove the line “plt.xscale(‘log’)” the script goes up to the end.

I’m running the program on MacOS 10.6.8, Python 2.5, numpy 1.2.1, and

matplotlib 0.98.5.2.

Anyone knows the reason of the crash?

Thanks,

marc

Hi Ben,

I will try to do it. Once it is done I let you know.

Cheers,
marc

···

On Wed, Aug 10, 2011 at 7:41 PM, Benjamin Root <ben.root@...1304...> wrote:

On Wed, Aug 10, 2011 at 12:32 PM, Marc Magrans de Abril > <marcmagransdeabril@...287...> wrote:

Dear colleagues,

I'm trying to display an histogram with logarithmic bins using the
logarithmic scale in the x-axis. When I execute the attached python
script it crashes giving a "Bus Error" message (see also the attached
core dump).

If I remove the line "plt.xscale('log')" the script goes up to the end.

I'm running the program on MacOS 10.6.8, Python 2.5, numpy 1.2.1, and
matplotlib 0.98.5.2.

Anyone knows the reason of the crash?

Thanks,
marc

If I remember correctly, there was a log-scale bug in plt.hist() that got
fixed a little while back. Your version of numpy and matplotlib is a little
old. Is it possible to update those two packages on your system?

Ben Root

Hi Ben,

I will try to do it. Once it is done I let you know.

Cheers,
marc

···

On Wed, Aug 10, 2011 at 7:41 PM, Benjamin Root <ben.root@...1304...> wrote:

On Wed, Aug 10, 2011 at 12:32 PM, Marc Magrans de Abril > <marcmagransdeabril@...287...> wrote:

Dear colleagues,

I'm trying to display an histogram with logarithmic bins using the
logarithmic scale in the x-axis. When I execute the attached python
script it crashes giving a "Bus Error" message (see also the attached
core dump).

If I remove the line "plt.xscale('log')" the script goes up to the end.

I'm running the program on MacOS 10.6.8, Python 2.5, numpy 1.2.1, and
matplotlib 0.98.5.2.

Anyone knows the reason of the crash?

Thanks,
marc

If I remember correctly, there was a log-scale bug in plt.hist() that got
fixed a little while back. Your version of numpy and matplotlib is a little
old. Is it possible to update those two packages on your system?

Ben Root

Hi Ben,

Finally, I updated ti Python 2.6.7, numpy 1.6.1, and matplotlib 1.0.1.
The update solved the problem.

Thanks,
marc

···

On Wed, Aug 10, 2011 at 8:41 PM, Marc Magrans de Abril <marcmagransdeabril@...287...> wrote:

Hi Ben,

I will try to do it. Once it is done I let you know.

Cheers,
marc

On Wed, Aug 10, 2011 at 7:41 PM, Benjamin Root <ben.root@...1304...> wrote:

On Wed, Aug 10, 2011 at 12:32 PM, Marc Magrans de Abril >> <marcmagransdeabril@...287...> wrote:

Dear colleagues,

I'm trying to display an histogram with logarithmic bins using the
logarithmic scale in the x-axis. When I execute the attached python
script it crashes giving a "Bus Error" message (see also the attached
core dump).

If I remove the line "plt.xscale('log')" the script goes up to the end.

I'm running the program on MacOS 10.6.8, Python 2.5, numpy 1.2.1, and
matplotlib 0.98.5.2.

Anyone knows the reason of the crash?

Thanks,
marc

If I remember correctly, there was a log-scale bug in plt.hist() that got
fixed a little while back. Your version of numpy and matplotlib is a little
old. Is it possible to update those two packages on your system?

Ben Root