plotting 3d scatter in matplotlib

前端 未结 3 1238
悲哀的现实
悲哀的现实 2021-02-07 16:13

I have a collection of Nx3 matrices in scipy/numpy and I\'d like to make a 3 dimensional scatter of it, where the X and Y axes are determined by the values of first and second c

3条回答
  •  梦毁少年i
    2021-02-07 17:04

    Setting the kwarg depthshade=False fixed it for me:

    ax.scatter(np.log2(data[:, 0]), np.log2(data[:, 1]), 
                   np.log2(data[:, 2]), 'o', c=curr_color,  label=my_labels[index], depthshade=False)
    

提交回复
热议问题