我无法从Zeppelin的python中的以下代码获得输出:
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = Axes3D(fig)
x = list(range(0, 100))
y = list(range(0, 100))
z = list(range(0, 100))
ax.scatter(x, y, z)
plt.show()
错误是:
无法执行第10行:ax.scatter(x,y,z)
AttributeError:“ PathCollection”对象没有属性“ do_3d_projection”
通常,scatter
在Zeppelin的python中不起作用,并出现上述错误。 Aslo,this solution对我不起作用。