histogram(x, bin): x-axis range should be based on bin.min() and bin.max() when bin is a sequence

Hi,

we got this Debian bug:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503148

Citing:

"
the following python code creates a histogram with an x-axis range of
0.1 min to 0.3 max (based on the mins and maxes of the x rather than bin).
the bins should be used to size the axis since the user specified that
he wanted to see those specific bins (even though they are empty). note
that the 'range=' option would be a potential solution, but it is ignored
when bin is a sequence (presumably because the range would be chosen
based on bin's limits, but this isn't so).

  from pylab import *
  x = [0.18,0.22,0.19]
  bin = [0,0.1,0.2,0.3,0.4,0.5]
  hist(x,bin)
  show()

i believe that the x-axis ranges should instead be based on the mins and
maxes of bin when it is a sequence.

please forward this report upstream or let me know if you believe that it
belongs there.

thank you for your consideration
"

I tested that this applies to 0.98.3. Is this a bug?

Thanks,
Ondrej

Hello Ondrej,

we got this Debian bug:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503148

...

I tested that this applies to 0.98.3. Is this a bug?

This is fixed in the latest release (0.98.4 or in 0.98.5); I'm working
on uploading it Debian, together with John and Michael (and all dev
team), to have a feasable release.

Cheers,

···

On Fri, Dec 19, 2008 at 18:18, Ondrej Certik <ondrej@...2033...> wrote:
--
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

Ah, I didn't know you are on the mpl dev team as well. That's great.

Ondrej

···

On Fri, Dec 19, 2008 at 6:34 PM, Sandro Tosi <morph@...10...> wrote:

Hello Ondrej,

On Fri, Dec 19, 2008 at 18:18, Ondrej Certik <ondrej@...2033...> wrote:

we got this Debian bug:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503148

...

I tested that this applies to 0.98.3. Is this a bug?

This is fixed in the latest release (0.98.4 or in 0.98.5); I'm working
on uploading it Debian, together with John and Michael (and all dev
team), to have a feasable release.

Oh no no: I bother them for something, and they (to force me to
silence) release a fix :smiley:

Cheers,

···

On Fri, Dec 19, 2008 at 18:47, Ondrej Certik <ondrej@...2033...> wrote:

On Fri, Dec 19, 2008 at 6:34 PM, Sandro Tosi <morph@...10...> wrote:

This is fixed in the latest release (0.98.4 or in 0.98.5); I'm working
on uploading it Debian, together with John and Michael (and all dev
team), to have a feasable release.

Ah, I didn't know you are on the mpl dev team as well. That's great.

--
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi