I have two-dimensional data and a two-dimensional quadriceps grid describing a domain divided into patches. Data is defined in each node grid. Data gaps exist at the patch boundaries, i.e. Data is propagated in the same place.
How can I use Python to build this data with linear interpolation between nodes and correctly represent discontinuous values ββalong each edge of the patch?
Below are three examples of elements or patches, each of which has six node values.

Node location and value data can be stored in the [Kx3x2] array, where K is the number of elements. For instance,
x = np.array( [ [ [0.0, 1.0], [0.0, 1.0], [0.0, 1.0] ], #element 0 [ [1.0, 2.0], [1.0, 2.0], [1.0, 2.0] ], #element 1 [ [2.0, 3.0], [2.0, 3.0], [2.0, 3.0] ], #element 2 ] ) y = np.array( [ [ [0.0, 0.0], [0.5, 0.5], [1.0, 1.0] ], #element 0 [ [0.0, 1.0], [0.5, 1.5], [1.0, 2.0] ], #element 1 [ [1.0, 1.0], [1.5, 1.5], [2.0, 2.0] ], #element 2 ] ) z = np.array( [ [ [0.0, 0.5], [0.0, 0.8], [0.0, 1.0] ], #element 0 [ [0.3, 1.0], [0.6, 1.2], [0.8, 1.3] ], #element 1 [ [1.2, 1.5], [1.3, 1.4], [1.5, 1.7] ], #element 2 ] )
I reviewed pyplot.imshow() . It cannot view the entire domain at once and is still multi-valued intermittent nodes. This may work for calling imshow() separately for each patch. But how would I draw each patch image on the same axis? imshow() also problematic for non-rectangular patches, which is my common case.
I reviewed pyplot.pcolormesh() , but it seems to work exclusively with cell centered data.