How to make a histogram from a list of data and plot it with matplotlib
do you have any idea how to make 200 evenly spaced out bins, and have your program store the data in the appropriate bins? You can, for example, use NumPy’s arange for a fixed bin size (or Python’s standard range object), and NumPy’s linspace for evenly spaced bins. Here are 2 simple examples from my … Read more