标签: python matplotlib seaborn
使用seaborn绘制分类数据,如何不使用熊猫(使用numpy向量)设置标签?
我正在绘制多个小提琴图。我的数据是numpy向量的列表。以下将根据需要生成多个小提琴图,但未标记它们。我必须通过set_xticklabels手动标记。
fig, ax = plt.subplots() sns.violinplot (data=vectors, cut=0, ax=ax) ax.set_xticklabels (['cluster', 'split'])