Fixed sample speed when plot is running.