I am not sure why you would want to call replot() periodically via a timer. Did you try setAutoReplot()