Split trace to avoid masked arrays.