How to Display Data Set Using a Histogram in Python


In this example we will show how to create the data set as big as you want and display them using a histogram in Python.

Source Code

import numpy
import matplotlib.pyplot as plt

a = numpy.random.uniform(0.0, 10.0, 1000000)
plt.hist(a, 100)
plt.show()

Output:

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments