SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Yang Z. <yan...@gm...> - 2008年11月28日 22:25:29
Hi, when I do:
 hist([0,0,0], bins=10, range=(0,10))
How come the single bin takes up the entire plot? Same with just two 
values, or anything less than 10 - the two bars take up the entire plot, 
no matter what I plug in for range. I'd just like 10 bins, from 0 to 9.
-- 
Yang Zhang
http://www.mit.edu/~y_z/
From: Manuel M. <mm...@as...> - 2008年12月01日 08:18:06
Yang Zhang wrote:
> Hi, when I do:
> 
> hist([0,0,0], bins=10, range=(0,10))
> 
> How come the single bin takes up the entire plot? Same with just two 
> values, or anything less than 10 - the two bars take up the entire plot, 
> no matter what I plug in for range. I'd just like 10 bins, from 0 to 9.
That's a bug in the current implementation (see also
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503148).
mm
From: Manuel M. <mm...@as...> - 2008年12月01日 12:49:23
Manuel Metz wrote:
> Yang Zhang wrote:
>> Hi, when I do:
>>
>> hist([0,0,0], bins=10, range=(0,10))
>>
>> How come the single bin takes up the entire plot? Same with just two 
>> values, or anything less than 10 - the two bars take up the entire plot, 
>> no matter what I plug in for range. I'd just like 10 bins, from 0 to 9.
> 
> That's a bug in the current implementation (see also
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503148).
This is fixed now on the trunk.
mm
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /