In [1]:
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
In [2]:
data=np.arange(1000)
data=data+np.random.rand(len(data))*19
data=np.sin(data/39)
plt.plot(data,'.')
Out[2]:
In [3]:
count,bins=np.histogram(data,bins=200)
plt.plot(bins[:-1],count,'.-')
Out[3]:
In [ ]: