graph labels and line colors are readjusted