iterative plotting tool