Put some data in a display, but made a mistake. Want to replace one of the curves.
After I remove the curves I did not want, and then add new data, the colors are no longer correct.
Go to Solution.
Don't remove the curve and then add new data.
Instead, drag and drop the correct data over the curve you want to replace in the legend, like shown below:
This replaces the curve and does not mess up the linestyle colors.
You could also try Replace Data Origin feature.