improve graph plot