mayavi可以單獨指定每個點的大小和顏色嗎?Mayavi points3d具有不同的尺寸和顏色
該API對我來說很麻煩。
points3d(x, y, z...)
points3d(x, y, z, s, ...)
points3d(x, y, z, f, ...)
x, y and z are numpy arrays, or lists, all of the same shape, giving the positions of the points.
If only 3 arrays x, y, z are given, all the points are drawn with the same size and color.
In addition, you can pass a fourth array s of the same shape as x, y, and z giving an associated scalar value for each point, or a function f(x, y, z) returning the scalar value. This scalar value can be used to modulate the color and the size of the points.
所以在這種情況下,標量控制着尺寸和顏色,並且不可能將它們分開。我想要一種方法來指定尺寸爲(N,1)
陣列和顏色作爲另一個(N,1)
陣列單獨..
似乎複雜?
此圖片是從克羅斯利等人的共激活矩陣?我試圖用Mayavi想象的相同圖像。無意中,我正在處理它,我發現你的bctpy工具箱非常有用。我只是想說謝謝,我會在github上分享它。 – linello
什麼共激活矩陣?該圖像是我的可視化程序CVU中的一個大腦網絡,具有自動生成的大小和顏色的網絡統計數據(使用bctpy計算,這就是爲什麼我創建了bctpy)。 我很高興人們使用bctpy。 – aestrivex