Iterated Graphing in For Loop via Python -
for k in range(10): rtpi = (pratio / float(math.pi)) + x*0 plt.plot(x,rtpi,'r')
this produces flat line. how can this:
for k in range(10): rtpi = (pratio / float(math.pi)) + x*0 plt.scatter(x,rtpi,'r')
basically, every individual point, 1 point represented on graph per 1 point on x-axis.
if understand question correctly, this suggests should use plt.plot , add "o"
for k in range(10): rtpi = (pratio / float(math.pi)) + x*0 plt.plot(x,rtpi,'ro')
Comments
Post a Comment