import matplotlib.pyplot as plt
import numpy as np
plt.rcParams[‘font.sans-serif’]=[‘SimHei’]
plt.rcParams[‘axes.unicode_minus’] = False

CC = [72.34,64.08,90.02,82.32,68.56,69.21]
BC = [71.32,80.31,82.36,92.16,72.56,81.87]
BBC = [74.01,80.56,90.62,94.45,80.45,84.52]
ALBBC = [74.59,84.19,91.74,96.47,78.83,86.46]
index_ls = [‘D’,‘S’,‘Ii’,‘Lt’,‘Dnd’,‘As’]
plt.scatter(index_ls, CC,label=“CC”)
plt.scatter(index_ls, BC,label=“BC”) ## 可以设置坐标字
plt.scatter(index_ls, BBC,label=“BBC”)
plt.scatter(index_ls, ALBBC,label=“ALBBC”)
plt.title(‘不同模型的F1值对比’)

plt.legend()
plt.show()
matplotlib显示图中标签

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2022-02-23
  • 2021-10-17
  • 2022-12-23
  • 2018-04-13
  • 2021-07-26
猜你喜欢
  • 2021-10-30
  • 2021-09-13
  • 2022-01-04
  • 2021-11-05
  • 2021-05-31
  • 2021-12-04
  • 2022-01-16
相关资源
相似解决方案