added int casting to loop
pyplot looking pretty good