我有一个包含以下数据的PANDAS数据框:
DF0 = pd.DataFrame(np.random.uniform(0,100,(4,2)), columns=['x', 'y'])
pupil_rads = pd.Series(np.random.randint(1,10,(4)))
DF0["pupil_radius"] = pupil_rads
DF0
[out:]
x y pupil_radius
0 20.516882 15.098594 8
1 92.111798 97.200075 2
2 98.648040 94.133676 3
3 8.524813 88.978467 7
我想创建一个三维图形,显示在每次测量(测向的索引)时凝视的位置(x/y坐标)。此外,我还试图将其制作成一个线图,以便线的半径与瞳孔半径相对应。
到目前为止,我得出的结论是:
这将创建一个3D散点图,这几乎是我需要的:
第二个问题很简单,因为您可以使用}。
plot
,而不是{plot
有一个参数markersize
,这很好,但是如果这个参数不取一个序列,那就不好了。但我们可以通过分别绘制线图和标记来模拟其行为:样本输出:
More information about markersize and size in plot and scatter
相关问题 更多 >
编程相关推荐