Correctly handle plot labels after setting active curves via the legend widget.