compute timeplot only when tab activated