bring code from other project for combined contour/lattice plot