Plotting getting slower and slower