Re: [Matplotlib-users] Histogram appearance

2014-12-15 Thread Amit Saha
Hi, On Thu, Dec 4, 2014 at 7:01 AM, Dino Bektešević ljet...@gmail.com wrote: Hello, try doing: import matplotlib.pyplot as plt import random rolls = list() for i in range(1000): rolls.append(random.randint(1,6)) plt.hist(rolls, bins=6) plt.show() Reason why your histogram is

[Matplotlib-users] Histogram appearance

2014-12-03 Thread Amit Saha
Hi, Please find attached a simple histogram created using the hist() function. Any idea why the last two bars are squeezed into each other? Is there a simple way to fix this while plotting? Thanks, Amit. -- Download BIRT

Re: [Matplotlib-users] Histogram appearance

2014-12-03 Thread Brendan Barnwell
On 2014-12-03 12:39, Amit Saha wrote: Hi, Please find attached a simple histogram created using the hist() function. Any idea why the last two bars are squeezed into each other? Is there a simple way to fix this while plotting? It looks like the bins are set up so that there are

Re: [Matplotlib-users] Histogram appearance

2014-12-03 Thread Amit Saha
On Thu, Dec 4, 2014 at 6:45 AM, Brendan Barnwell brenb...@brenbarn.net wrote: On 2014-12-03 12:39, Amit Saha wrote: Hi, Please find attached a simple histogram created using the hist() function. Any idea why the last two bars are squeezed into each other? Is there a simple way to fix this

Re: [Matplotlib-users] Histogram appearance

2014-12-03 Thread Dino Bektešević
Hello, try doing: import matplotlib.pyplot as plt import random rolls = list() for i in range(1000): rolls.append(random.randint(1,6)) plt.hist(rolls, bins=6) plt.show() Reason why your histogram is weird is because you only can have 6 bins in your example. But the default bin number for