-
Notifications
You must be signed in to change notification settings - Fork 0
/
draw_bar.py
24 lines (17 loc) · 2.01 KB
/
draw_bar.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import matplotlib.pyplot as plt
import numpy as np
baseline = [0.5352879762649536, 0.46089833974838257, 0.4778726100921631, 0.5544883012771606, 0.6033254265785217, 0.711575984954834, 0.45586487650871277, 0.6547020077705383, 0.6360204219818115, 0.5287663340568542, 0.7337051033973694, 0.5423523187637329, 0.7687079310417175, 0.5866032838821411, 0.4560858905315399, 0.453106164932251, 0.6995782256126404, 0.7861025929450989, 0.6004713177680969, 0.7601057291030884]
IF = [0.5064085721969604, 0.3594149053096771, 0.3830437660217285, 0.4512494206428528, 0.5228122472763062, 0.6459239721298218, 0.3611810505390167, 0.5769811868667603, 0.4589066803455353, 0.4587234556674957, 0.6473208665847778, 0.41424357891082764, 0.6774500012397766, 0.5025854706764221, 0.36447498202323914, 0.3726506531238556, 0.5981438755989075, 0.7105734348297119, 0.5459610223770142, 0.6468483209609985]
LIF = [0.4966725707054138, 0.3477087616920471, 0.3655884861946106, 0.44881969690322876, 0.5282096266746521, 0.6235901713371277, 0.3735264539718628, 0.5465430021286011, 0.5013605356216431, 0.46097442507743835, 0.642098069190979, 0.4114214777946472, 0.6855044960975647, 0.5010250806808472, 0.3532574474811554, 0.3563506007194519, 0.5832908749580383, 0.7063268423080444, 0.5435697436332703, 0.6580451726913452]
PLIF = [0.36857229471206665, 0.2822090983390808, 0.2590530812740326, 0.3606283962726593, 0.4024117887020111, 0.52211594581604, 0.3078891336917877, 0.38090747594833374, 0.3262038826942444, 0.3622652590274811, 0.5026981234550476, 0.2986880838871002, 0.5774822235107422, 0.37275853753089905, 0.31498584151268005, 0.268102765083313, 0.3974026143550873, 0.6742106080055237, 0.5253205299377441, 0.5581411123275757]
x = np.arange(20)
bar_width = 0.2
tick_label = list(range(20))
plt.figure(figsize=(15,6))
plt.bar(x,baseline,bar_width,label='baseline')
plt.bar(x+bar_width,IF,bar_width, label='IF')
plt.bar(x+2*bar_width,LIF,bar_width, label='LIF')
plt.bar(x+3*bar_width,PLIF,bar_width, label='PLIF')
plt.legend()
plt.xticks(x+2*bar_width,tick_label)
plt.savefig('./results/bar.png')