import matplotlib.pyplot as plt
from matplotlib.pyplot import MultipleLocator
import os
import numpy as np
#
plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['axes.unicode_minus'] = False
x_5 = [7.276, 21.3, 47.0, 87.7]
y_5 = [81.9, 86.1, 88.0, 88.6]
x_6 = [7.276, 21.3, 47.0, 87.7]
y_6 = [81.9, 86.1, 88.0, 88.6]
x_7 = [8.94, 25.29, 54.16, 99.01]
y_7 = [92.7, 97.9, 98.6, 99.53]
x_8 = [8.95, 25.29, 54.16, 99.01]
y_8 = [89.3, 96.9, 97.4, 98.1]
#
# %color = ['150 205 205', '#CC00FF', '#99CCFF', '#66CC00', '#CC99FF', '#990099', '#66FF33', '#CCCCFF', '#0000CC', '#666666', '#BB5500', '#EEEE00', '#FF3EFF', '#FF88C2', '#FF0033']
###全局定义字体类型
font = {'family': 'Times New Roman'}
plt.rc('font', **font)
plt.xlim(5, 120)
plt.ylim(80, 100)
plt.plot(x_5, y_5, marker='p', markersize='15', label='5(s-x)')
plt.plot(x_6, y_6, marker='^', markersize='15', label='6(s-x)')
plt.plot(x_7, y_7, marker='h', markersize='15', label='7(s-x)')
plt.plot(x_8, y_8, marker='o', markersize='15', label='8(s-x)')
plt.xlabel('Params', family='Times New Roman', fontsize=16)
plt.ylabel('AP(%)', family='Times New Roman', fontsize=16)
plt.title('XXXXXX', family='Times New Roman', size=16)
plt.legend(loc="lower right", prop={'family':'Times New Roman', 'size':13})
plt.show()
