resize graph