create density plots on a triangular or square lattice