Call setActiveCurve just once.
ScanWindow makes sure the plot signal is emitted.