3d直方图的散点图

时间:2020-07-17 12:12:28

标签: python matplotlib

我想在我的3d图的轴旁绘制直方图(类似于图片,但在3d中) enter image description here

x = np.random.randn(1000)
y = np.random.randn(1000)
z = np.random.randn(1000)
fig = plt.figure(figsize = (10,10))
ax = fig.add_subplot(111, projection='3d')
ax.scatter(x, y, z, s = 1, color='black')

看文档(https://matplotlib.org/3.1.1/gallery/lines_bars_and_markers/scatter_hist.html#sphx-glr-gallery-lines-bars-and-markers-scatter-hist-py),我不知道如何外推到3d轴。

我有一个3d图,例如下面的图和要在其旁边绘制的每个轴的直方图。

enter image description here

1 个答案:

答案 0 :(得分:0)

对于这样的图形,请使用seaborn.jointplot

您应该使用plotlycufflinks来创建3d图

相关问题