plot3: process data for plot3