[Matplotlib-users] 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 -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] histogram(x, bin): x-axis range should be based on bin.min() and bin.max() when bin is a sequence
Hello Ondrej, On Fri, Dec 19, 2008 at 18:18, Ondrej Certik ond...@certik.cz 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. Cheers, -- Sandro Tosi (aka morph, Morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] histogram(x, bin): x-axis range should be based on bin.min() and bin.max() when bin is a sequence
On Fri, Dec 19, 2008 at 6:34 PM, Sandro Tosi mo...@debian.org wrote: Hello Ondrej, On Fri, Dec 19, 2008 at 18:18, Ondrej Certik ond...@certik.cz 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. Ah, I didn't know you are on the mpl dev team as well. That's great. Ondrej -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] histogram(x, bin): x-axis range should be based on bin.min() and bin.max() when bin is a sequence
On Fri, Dec 19, 2008 at 18:47, Ondrej Certik ond...@certik.cz wrote: On Fri, Dec 19, 2008 at 6:34 PM, Sandro Tosi mo...@debian.org 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. Oh no no: I bother them for something, and they (to force me to silence) release a fix :D Cheers, -- Sandro Tosi (aka morph, Morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users