三叶草样式的散点图用三叶草符号表示散点图。 1234567891011121314151617import matplotlib.pyplot as pltimport numpy as np# Fixing random state for reproducibilitynp.random.seed(19680801)x = np.arange(0.0, 50.0, 2.0)y = x ** 1.3 + np.random.rand(*x.shape) * 30.0s = np.random.rand(*x.shape) * 800 + 500plt.scatter(x, y, s, c="g", alpha=0.5, marker=r'$\clubsuit$', label="Luck")plt.xlabel("Leprechauns")plt.ylabel("Gold")plt.legend(loc='upper left')plt.show() 下载这个示例 下载python源码: scatter_symbol.py 下载Jupyter notebook: scatter_symbol.ipynb