Evolution of anisotropy of a partonic system from relativistic heavy-ion collisions