optimized plotting time by using set(lineObjects(i),'XData',...