import random
import pylab
import matplotlib.pyplot as plt
for count in range(0,1000):
#for loop used in conjunction with a count and range to produce 1000 numbers #
x=random.gauss(550,30)
a=pylab.array([50000 ,30000 ,10000 ,0], float)
s=pylab.array([0 ,100 ,30], float)
A=pylab.array([((x+(s[0]))/2) ,((x+(s[1]))/2) ,((x+(s[2]))/2)])
D=pylab.array([(a[0]-a[1]) ,(a[1]-a[2]) ,(a[2]-a[3])])
T=pylab.array([(D[0]/A[0]) ,(D[1]/A[1]) ,(D[2]/A[2])])
Tc=pylab.array([(T[0]/20000) ,(T[1]/20000) ,(T[2]/10000)])
B=pylab.array([(50000) ,(30000) ,(20000) ,(3000) ,(0)], float)
T3=pylab.array([(Tc[0]*20000) ,(Tc[1]*10000) ,((Tc[1]*10000)+(Tc[2]*7000)),(Tc[2]*3000)])
S=pylab.array([(2) ,(6) ,(3) ,(0)])
W=pylab.array([(T3[0]*S[3]) ,(T3[1]*S[2]) ,(T3[2]*S[1]) ,(T3[3]*S[0])])
W=(4600)+W[0]+W[1]+W[2]+W[3]
#need to plot W which is generated using the equations stored in the arrays above based on #the random values for generated for x.
plt.hist([x], bins=[20])
plt.show()
when I attempt to plot it though the graph produced is always blank ie, nothing is plotted
any help would be greatly appreciated, thanks.