Unchecking the "Average" checkbox now removes the average plot

Signed-off-by: Nicola Ferralis <feranick@hotmail.com>