process_data function

get plot data