from sigmaepsilon.mesh.plotting import plot_lines_plotly
from sigmaepsilon.mesh import grid
from sigmaepsilon.mesh.utils.topology.tr import H8_to_L2
import numpy as np
gridparams = {
    "size": (10, 10, 10),
    "shape": (4, 4, 4),
    "eshape": "H8",
}
coords, topo = grid(**gridparams)
coords, topo = H8_to_L2(coords, topo)
data = np.random.rand(len(coords), 2)
plot_lines_plotly(coords, topo, scalars=data, scalar_labels=["X", "Y"])