In some of my plots the curve description in the legend is too long, making the legend going over the plot, even if the legend is placed as far away as possible. Therefore I want to have multiple lines in the legend, but
\addlegendentry{a\\ b}
results in an error. Is there another way to do that?