# -*- coding: UTF-8 -*-import numpy as npimport matplotlib as mplimport matplotlib.pyplot as plt#这里导入你自己的数据#......#......#x_axix,train_pn_dis这些都是长度相同的list()#开始画图sub_axix = filter(lambda x:x%200 == 0, x_axix)plt.title('Result Analysis')plt.plot(x_axix, train_acys, color='green', label='training accuracy')plt.plot(sub_axix, test_acys, color='red', label='testing accuracy')plt.plot(x_axix, train_pn_dis, color='skyblue', label='PN distance')plt.plot(x_axix, thresholds, color='blue', label='threshold')plt.legend() # 显示图例plt.xlabel('iteration times')plt.ylabel('rate')plt.show()#python 一个折线图绘制多个曲线