sync
This commit is contained in:
parent
09b7801706
commit
40ec8ec9d5
@ -35,7 +35,7 @@ rects1 = ax.bar(index, bt_s, bar_width,
|
|||||||
|
|
||||||
rects2 = ax.bar(index + bar_width, bt_c, bar_width,
|
rects2 = ax.bar(index + bar_width, bt_c, bar_width,
|
||||||
alpha=opacity, color='#00b894',
|
alpha=opacity, color='#00b894',
|
||||||
label='Classic')
|
label='Classical')
|
||||||
|
|
||||||
|
|
||||||
# ax.set_ylabel('Probability of Breaking Partnership(%)')
|
# ax.set_ylabel('Probability of Breaking Partnership(%)')
|
||||||
|
|||||||
@ -61,8 +61,9 @@ if __name__ == '__main__':
|
|||||||
blue = '#0984e3'
|
blue = '#0984e3'
|
||||||
red = '#d63031'
|
red = '#d63031'
|
||||||
green = '#00b894'
|
green = '#00b894'
|
||||||
|
black = '#000000'
|
||||||
c = [blue, red]
|
c = [blue, red]
|
||||||
labels = ['Dissipative', 'Classic']
|
labels = ['Dissipative', 'Classical']
|
||||||
fig = plt.figure(figsize=(4, 3))
|
fig = plt.figure(figsize=(4, 3))
|
||||||
ax = fig.gca()
|
ax = fig.gca()
|
||||||
index = np.arange(2)
|
index = np.arange(2)
|
||||||
@ -72,9 +73,9 @@ if __name__ == '__main__':
|
|||||||
vp2 = ax.violinplot(fc, positions=index+widths/2, widths=widths, showmeans=True, showmedians=True)
|
vp2 = ax.violinplot(fc, positions=index+widths/2, widths=widths, showmeans=True, showmedians=True)
|
||||||
hdl1 = pch.Patch(facecolor=vp1['bodies'][0].get_facecolor()[0])
|
hdl1 = pch.Patch(facecolor=vp1['bodies'][0].get_facecolor()[0])
|
||||||
hdl2 = pch.Patch(facecolor=vp2['bodies'][0].get_facecolor()[0])
|
hdl2 = pch.Patch(facecolor=vp2['bodies'][0].get_facecolor()[0])
|
||||||
vp1['cmeans'].set_edgecolor(green)
|
vp1['cmeans'].set_edgecolor(black)
|
||||||
vp1['cmeans'].set_linestyle(':')
|
vp1['cmeans'].set_linestyle(':')
|
||||||
vp2['cmeans'].set_edgecolor(green)
|
vp2['cmeans'].set_edgecolor(black)
|
||||||
vp2['cmeans'].set_linestyle(':')
|
vp2['cmeans'].set_linestyle(':')
|
||||||
ax.set_ylabel('Distribution of Food Loss')
|
ax.set_ylabel('Distribution of Food Loss')
|
||||||
ax.yaxis.grid(True, linestyle='--')
|
ax.yaxis.grid(True, linestyle='--')
|
||||||
|
|||||||
9
print_game_time.py
Normal file
9
print_game_time.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import json
|
||||||
|
import time
|
||||||
|
from island.match import Match
|
||||||
|
from island.matches import Matches
|
||||||
|
|
||||||
|
ms = Matches.from_profile_expr(lambda r: True)
|
||||||
|
for m in ms.data:
|
||||||
|
ts = m.query('game', 'created').first()['info']['next_start']
|
||||||
|
print(time.strftime("%Y/%m/%d %H:%M:%S", time.localtime(int(ts))))
|
||||||
Loading…
Reference in New Issue
Block a user