没用cmap时的方法需要循环设置label,例如for color, i, target_name in zip(colors, [0, 1, 2], target_names): plt.scatter( X_r2[y == i, 0], ...
確定! 回上一頁