I have a small piece of code that print values gotten from a csv file into a histogram. This is all done using matplotlib library
dev_x= X #this is where my integers are stored
plt.hist(dev_x, bins=7)
#var=np.var(dev_x)
#print(np.mean(dev_x))
#plt.axhline(var)
plt.xlabel('Values')
plt.ylabel('Quatity')
plt.title('Graph')
When the following lines are commented, I get the result

However, when I uncomment these lines
var=np.var(dev_x)
print(np.mean(dev_x))
plt.axhline(var)
I get only this graph
The code aims to show the histagram of the data and then the mean and the variance horizontal .

