How do I plot the aqr[i] values on the y-axis and the [30,60] interval on the x-axis?
I have tried the following code:
arr = np.random.randint(100, size=1000)
arq = np.zeros(31)
for i in range(31):
for num in arr:
if num == 30+i :
arq[i] += 1
plt.plot (arq[i]) #this line outputs an empty figure
Another version of the code I tried to get it to plot correctly is:
arr = np.random.randint(100, size=1000)
arq = np.zeros(31)
for i in range(31):
for num in arr:
for j in range (30, 61):
if num == j+i :
arq[i] += 1
plt.plot (arq[i], j)
However, the above snippet of code crashes.