您可以查看mlab的內置文檔。從help(mlab.pipeline.surface)
:
:vmax: vmax is used to scale the colormap.
If None, the max of the data will be used
:vmin: vmin is used to scale the colormap.
If None, the min of the data will be used
換句話說,你需要計算每跨數據集數據的全局最小值和全局最大值,並設置相同的極值爲你的每一個表面。請注意,您可以使用matplotlib的3D繪圖方法完全相同(甚至完全相同的關鍵字)。
切向注意:您的用例也可能受益於某些透明度,因爲您的曲面可能會彼此重疊,從而可能會妨礙可視化。浮現在腦海中的兩個關鍵字opacity
也許(雖然不太可能)transparent
:
:opacity: The overall opacity of the vtk object. Must be a float.
Default: 1.0
:transparent: make the opacity of the actor depend on the
scalar.
你能張貼你想達到什麼樣的一個簡短的例子?做出潛在答案會容易得多。 Stackoverflow有一個關於它的幫助頁面(https://stackoverflow.com/help/mcve) –