handles, labels = pyplot.gca().get_legend_handles_labels()
newLabels, newHandles = [], []
for handle, label in zip(handles, labels):
    if label not in newLabels:
        newLabels.append(label)
newHandles.append(handle)
pyplot.legend(newHandles, newLabels)
pyplot combine multiple line labels in legend