%
matplotlib widget
from
mpl_toolkits.mplot3d
import
Axes3D
import
matplotlib.pyplot as plt
xs
=
[
14
,
24
,
43
,
47
,
54
,
66
,
74
,
89
,
12
,
44
,
1
,
2
,
3
,
4
,
5
,
9
,
8
,
7
,
6
,
5
]
ys
=
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
6
,
3
,
5
,
2
,
4
,
1
,
8
,
7
,
0
,
5
]
zs
=
[
9
,
6
,
3
,
5
,
2
,
4
,
1
,
8
,
7
,
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
0
]
fig
=
plt.figure()
ax
=
Axes3D(fig)
plot_geeks
=
ax.scatter(xs, ys, zs, color
=
'green'
)
ax.set_title(
"3D plot"
)
ax.set_xlabel(
'x-axis'
)
ax.set_ylabel(
'y-axis'
)
ax.set_zlabel(
'z-axis'
)
plt.show()