python 点云_python绘制词云图

Python (5) 2024-07-12 12:23

Hi,大家好,我是编程小6,很荣幸遇见你,我把这些年在开发过程中遇到的问题或想法写出来,今天说一说
python 点云_python绘制词云图,希望能够帮助你!!!。

生成立方体的点云图,可调节密集程度。

import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.mplot3d import Axes3D # 生成1000个随机坐标 vertices = np.random.rand(10000, 3) * 2 - 1 # 生成每个点的随机颜色 colors = np.random.rand(10000, 3) # 绘制点云图 fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.scatter(vertices[:, 0], vertices[:, 1], vertices[:, 2], s=0.1, c=colors) ax.set_axis_off() plt.show() 

python 点云_python绘制词云图_https://bianchenghao6.com/blog_Python_第1张python 点云_python绘制词云图_https://bianchenghao6.com/blog_Python_第2张

今天的分享到此就结束了,感谢您的阅读,如果确实帮到您,您可以动动手指转发给其他人。

发表回复