MATLAB-like drawnow()