如何在pyplot上添加多个标签

问题遇到的现象和发生背景

如何在pyplot上添加多个标签?如图最上面的每个圆点对应一个省

运行结果及报错内容
plt.scatter(tsne[:, 0], tsne[:, 1], c=color, cmap=plt.cm.Spectral)
plt.legend(['bdsr', 'csl', 'fwq', 'gj', 'htj', 'hy', 'lgq', 'lqs', 'lx', 'mf', 'mzd', 'oyx', 'sgt', 'shz', 'smh', 'wxz', 'wzm', 'yyr', 'yzq', 'zmf'],loc='best',ncol=20)
#
plt.grid(True)

img

我的解答思路和尝试过的方法

用legend()只能出现一个标签

我想要达到的结果

img

参考这个看能不能满足要求:https://blog.csdn.net/KEEPace_6/article/details/125373466