matplotlib-16 scatter绘制气泡图 气泡图 代码展示 重要代码解释 气泡图 二维数据借助气泡的大小展示三维数据。 代码展示 import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt x = np.random.rand(50) y = np.random.rand(50) z = (20 * x + 20 * y) ** 2 plt.scatter(x, y, s=z, c=np.random.rand(50