from sigmaepsilon.mesh.plotting import triplot_plotly
from sigmaepsilon.mesh import grid
from sigmaepsilon.mesh.utils.topology.tr import Q4_to_T3
import numpy as np
gridparams = {
    "size": (1200, 600),
    "shape": (4, 4),
    "eshape": (2, 2),
}
coords, topo = grid(**gridparams)
points, triangles = Q4_to_T3(coords, topo, path="grid")
data = np.random.rand(len(points))
triplot_plotly(points, triangles, data, plot_edges=True)