def plot_tao(x,res):
plt.rcParams['font.family'] = 'serif'
plt.rcParams['font.serif'] = 'Times New Roman'
plt.rcParams['font.weight'] = 'bold'
proposed, b1, b2, b3,b4 = process_res(res)
plt.plot(x, proposed, marker='>', markersize=8, label='Proposed Scheme')
plt.plot(x, b1, marker='o', markersize=8, label='Baseline 1',markerfacecolor='none')
plt.plot(x, b4, marker='*', markersize=8, label='Baseline 2',markerfacecolor='none')
plt.plot(x, b3, marker='d', markersize=8, label='Baseline 3',markerfacecolor='none')
plt.plot(x, b2, marker='s', markersize=8, label='Baseline 4',markerfacecolor='none')
plt.rc('font', size=13)
plt.legend(loc='lower right', ncol=1)
plt.grid(linestyle="--",color="gray",linewidth="0.5",axis="both")
plt.xticks(fontsize=13)
plt.yticks(fontsize=13)
plt.xlabel(r'Delay Time $T_{\rm delay}$ (ms)', fontsize=13,fontweight='bold')
plt.ylabel('QoE', fontsize=13,fontweight='bold',labelpad=0)
a = datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
plt.savefig("runs/baseline/new_baseline/Tao" + a, dpi=600, bbox_inches='tight', pad_inches=0.01)
plt.show()
plt.rcParams['font.weight'] = 'bold'
:图里的字(一般为label和坐标轴刻度)设置为粗体;plt.rc('font', size=13)
:设置字体大小markerfacecolor='none'
:maker设置为透明;plt.legend(loc='lower right', ncol=1)
:lower、center、upper;left 、right;plt.xticks(fontsize=13)
:坐标轴刻度的大小plt.ylabel('QoE', fontsize=13,fontweight='bold',labelpad=0)
:设置y轴标题为黑体,labelpad表示标题距离坐标轴刻度的距离,可以设置负数。