plot template for 2d matrix view