matplotlib unstructered quadrilaterals instead of triangles
问题 I've two netcdf files containing both unstructured grids. The first grid has 3 vertices per face and the second has 4 vertices per face. For the grid containing 3 vertices per face I can use matplotlib.tri for visualization (like triplot_demo.py: import matplotlib.pyplot as plt import matplotlib.tri as tri import numpy as np xy = np.asarray([ [-0.101, 0.872], [-0.080, 0.883], [-0.069, 0.888], [-0.054, 0.890], [-0.045, 0.897], [-0.057, 0.895], [-0.073, 0.900], [-0.087, 0.898], [-0.090, 0.904],