draw line in interval