Add legend and correct intervals