【发布时间】:2018-08-10 05:48:48
【问题描述】:
我正在使用 Python 处理一些 3D(体积)数据,对于每个四面体,我不仅有顶点的坐标,还有第四维,它是该四面体体积的某个参数的值。
例如:
# nodes coordinates that defines a tetrahedron volume:
x = [0.0, 1.0, 0.0, 0.0]
y = [0.0, 0.0, 1.0, 0.0]
z = [0.0, 0.0, 0.0, 1.0]
# Scaler value of the potential for the given volume:
c = 100.0
我想绘制一个填充了一些纯色的 3D 体积(由节点坐标给出),这将代表给定值 C。
如何在 Python 3.6 中使用它的绘图库来做到这一点?
【问题讨论】:
标签: python python-3.x numpy matplotlib scipy