import numpy as np
import matplotlib.pyplot as plt
#从pyplot导入MultipleLocator类,这个类用于设置刻度间隔
from matplotlib.pyplot import MultipleLocator
# No Offl.
# x1 = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
y1 = [0.08, 0.25, 0.5, 0.7, 0.85, 0.9, 0.92, 0.93, 0.95, 0.97]
# R. Offl.
# x2 = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
y2 = [0, 0.05, 0.2, 0.44, 0.65, 0.8, 0.9, 0.92, 0.94, 0.96]
# PGOA
# x3 = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
y3 = [0, 0.05, 0.2, 0.42, 0.61, 0.75, 0.81, 0.89, 0.9, 0.92]
# ULOOF
# x4 = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
y4 = [0, 0.05, 0.18, 0.38, 0.5, 0.61, 0.7, 0.75, 0.79, 0.82]
# DRL
# x5 = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
y5 = [0, 0, 0.05, 0.08, 0.18, 0.32, 0.5, 0.63, 0.75, 0.8]
x=np.arange(0.1, 1.1, 0.1)
# print(x)
l1 = plt.plot(x, y1, label='No Offl', color='steelblue', marker='o', markerfacecolo