# -*- coding: UTF-8 -*-
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt

# 这里导入你自己的数据
x_axix=[1,2,3,4,5]
train_acys = [3,4,5,5,6]
test_acys  = [1,2,3,4,8]
# 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(x_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 一个折线图绘制多个曲线