Fix mismatched legend to plot lines

This was caused by the use of zipping dict (unordered) values against the legend lines.