Add plot summary data code