plot huatuchengxu

import matplotlib.pyplot as plt
import numpy as np

# x = np.linspace(-3, 3, 51)  # -3 3 51plt.figure()
# y1 = 2*x + 1
# # plt.plot(x, y1)
#
# plt.figure(num=4, figsize=(8, 5))
# y2 = x*x
# plt.plot(x, y1, color='red', linestyle='--', linewidth=5, label='y1 = 2*x + 1')
# plt.plot(x, y2, label= 'y2=x**2')
# plt.legend()
#
# plt.xlim(-1, 2)
# plt.ylim(-2, 3)
#
# plt.xlabel('I am x')
# plt.ylabel('I am y')
# plt.show()


# n = 1024
# x = np.random.normal(0, 1, n)
# y = np.random.normal(0, 1, n)
# t = np.arctan2(y, x)
#
# plt.scatter(x, y, s=75, c=t, alpha=0.5)
#
# plt.xlim(-1.5, 1.5)
# plt.ylim(-1.5, 1.5)
# plt.xticks(())
# plt.yticks(())
#
# plt.show()




# n = 12
# x = np.arange(n)
# y1 = (1-x/float(n)) * np.random.uniform(0.5, 1.0, n)
# y2 = (1-x/float(n)) * np.random.uniform(0.5, 1.0, n)
#
# plt.bar(x, +y1, facecolor='#9999ff', edgecolor='white')
# plt.bar(x, -y2, facecolor='#ff9999', edr='white')
#
#
# for x0, y0 in zip(x,y1):
#     plt.text(x0+0.4, y0+0.5, '%.2f' %y0, ha='center', va='bottom')
# for x0, y0 in zip(x,y2):
#     plt.text(x0+0.4, -y0-0.5, '%.2f' %y0, ha='center', va='bottom')
#
# plt.show()




# np.array([
#     0.313, 0.365, 0.423,
#     0.365, 0.439, 0.525,
#     0.423, 0.525, 0.651
# ]).reshape(3, 3)
#
# plt.imshow(a, interpolation='nearest', cmap='bone', origin='upper')
# plt.colorbar(shrink=0.9)
#
#
# plt.xticks(())
# plt.yticks(())
# plt.show()


# plt.figure()
# plt.subplot(2, 2, 1)
# plt.plot([0,1], [0,1])
#
# plt.subplot(2, 2, 2)
# plt.plot([0,1], [0,1])
#
# plt.subplot(223)
# plt.plot([0,1], [0,1])
#
# plt.subplot(224)
# plt.plot([0, 1], [0, 1])
# plt.show()


# x = np.linspace(1, 30, 30)
# y = x**2
#
# plt.plot(x, y)
# plt.scatter(x, y, c='r')
# plt.show()


x_v2_so = np.linspace(1, 25, 25)
x_v2 = np.linspace(1,28,28)
x_l_so = np.linspace(1,27,27)
x_l = np.linspace(1,28,28)


y_v2_so = [83.56, 87.83, 89.26, 90.27, 90.85, 89.98, 91.36, 92.73, 92.96, 93.78,
           94.01, 94.47, 95.12, 94.98, 96.12, 95.89, 96.91, 96.86, 96.99, 96.88,
           96.85, 97,    97,    97,     97]

y_v2    = [78.55,85.08,88.23,90.53,91.9,90.68,93.83,94.25,94.98,95.78,
          95.58,96.33,96.32,95.75,97.00,97.05,96.9,  96.81,96.8,96.95,
          96.9, 97.05, 97.1,97.1, 97.1, 97.1,97.11, 97.11]


y_l_so  = [92.78,95.41,96.23,96.53,97,  97.2, 97.31,96.91,97.01,97.18,
          97.43,97.48,97.61,97.75,97.4, 97.91,97.93,97.83,98.06,97.9,
          98.1 ,98.00,98.03,98.08,98.08,97.95,98.03]

y_l     = [92.21,95.38,96.38,97.38,97.53,97.8,97.78,97.65,97.85,97.96,
          98.31,98.1 ,98.26,98.26,98.35,98.36,98.23,98.48,98.42,98.3,
          98.43,98.42,98.3 ,98.4 ,98.5 ,98.56,98.48 ,98.48]



plt.plot(x_v2_so,y_v2_so, 'g', linewidth=1,marker='D',markersize=4,label='a: mobilenet v2(softmax + Triplet)')
plt.plot(x_v2,y_v2,   'b', linewidth=1,marker='o',markersize=4,label='b: mobilenet v2(AM-softmax + Triplet)')
plt.plot(x_l_so,y_l_so, 'k', linewidth=1,marker='^',markersize=5,label='c: L-mobilenet v2(softmax + Triplet)')

plt.plot(x_l,y_l,    'r', linewidth=1,marker='*',markersize=5,label='d: L-mobilenet v2(AM-softmax + Triplet)')

plt.xlim(0, 30)



plt.text(29, 98.5, 'd')
plt.text(29, 97.5, 'c')
plt.text(29, 96.5, 'b')
plt.text(25, 96, 'a')
# plt.scatter(x,y,"o")

# ax1 = plt.gca()
# # ax1.set_title("tutu")
# ax1.set_xlabel('epochs')
# ax1.set_ylabel('acc/%')

plt.xlabel('epochs')
plt.ylabel('acc/%')
plt.legend()
plt.show()

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值