stackedplotsetup method fixes: filter "a" by code needed sorted code, and rescaled "adiff" by sum over channels A:D for correct interval selection.