Re: Matplotlib - specifying bin widths

2014-06-06 Thread Jamie Mitchell
On Thursday, June 5, 2014 4:54:16 PM UTC+1, Jamie Mitchell wrote:
 Hello all!
 
 
 
 Instead of setting the number of bins I want to set the bin width.
 
 
 
 I would like my bins to go from 1.7 to 2.4 in steps of 0.05.
 
 
 
 How do I say this in the code?
 
 
 
 Cheers,
 
 
 
 Jamie

That's great thanks Mark.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Matplotlib - specifying bin widths

2014-06-06 Thread Mark Lawrence

On 06/06/2014 10:03, Jamie Mitchell wrote:

On Thursday, June 5, 2014 4:54:16 PM UTC+1, Jamie Mitchell wrote:

Hello all!



Instead of setting the number of bins I want to set the bin width.



I would like my bins to go from 1.7 to 2.4 in steps of 0.05.



How do I say this in the code?



Cheers,



Jamie


That's great thanks Mark.



No problem :)

In return would you please use the mailing list 
https://mail.python.org/mailman/listinfo/python-list or read and action 
this https://wiki.python.org/moin/GoogleGroupsPython to prevent us 
seeing double line spacing and single line paragraphs, thanks.


--
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.


Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
https://mail.python.org/mailman/listinfo/python-list


Matplotlib - specifying bin widths

2014-06-05 Thread Jamie Mitchell
Hello all!

Instead of setting the number of bins I want to set the bin width.

I would like my bins to go from 1.7 to 2.4 in steps of 0.05.

How do I say this in the code?

Cheers,

Jamie
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Matplotlib - specifying bin widths

2014-06-05 Thread Mark Lawrence

On 05/06/2014 16:54, Jamie Mitchell wrote:

Hello all!

Instead of setting the number of bins I want to set the bin width.

I would like my bins to go from 1.7 to 2.4 in steps of 0.05.

How do I say this in the code?

Cheers,

Jamie



This should help 
http://stackoverflow.com/questions/6986986/bin-size-in-matplotlib-histogram


--
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.


Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
https://mail.python.org/mailman/listinfo/python-list