clean up plot of arrays