我有一个关于如何使用 QcustomPlot Colormap FEM 数据显示的问题。数据具有以下形式:
X Y Z
0.000000 0.000000 0.000020
0.000000 0.010769 0.003000
0.010769 0.000000 0.000400
0.000000 0.041683 0.000050
0.020058 0.020058 0.003000
0.040024 0.000000 0.001000
0.000000 0.072596 0.001000
0.035689 0.035689 0.000030
0.069279 0.000000 0.000200
0.000000 0.134423 0.000200
由于沿 X 轴和 Y 轴的分布不是恒定的,我不知道如何使用
colorMap->data()->cellToCoord(xIndex, yIndex, &x, &y);
colorMap->data()->setCell(xIndex, yIndex, z);
如果有人建议使用其他类型的库,请发布。