Removed m=m+1 from plotting