diff --git a/break_tie_bar.py b/break_tie_bar.py index e37dce5..c40867c 100644 --- a/break_tie_bar.py +++ b/break_tie_bar.py @@ -35,7 +35,7 @@ rects1 = ax.bar(index, bt_s, bar_width, rects2 = ax.bar(index + bar_width, bt_c, bar_width, alpha=opacity, color='#00b894', - label='Classic') + label='Classical') # ax.set_ylabel('Probability of Breaking Partnership(%)') diff --git a/food_loss.py b/food_loss.py index c8dd290..d1d4e75 100644 --- a/food_loss.py +++ b/food_loss.py @@ -61,8 +61,9 @@ if __name__ == '__main__': blue = '#0984e3' red = '#d63031' green = '#00b894' + black = '#000000' c = [blue, red] - labels = ['Dissipative', 'Classic'] + labels = ['Dissipative', 'Classical'] fig = plt.figure(figsize=(4, 3)) ax = fig.gca() 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) hdl1 = pch.Patch(facecolor=vp1['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(':') - vp2['cmeans'].set_edgecolor(green) + vp2['cmeans'].set_edgecolor(black) vp2['cmeans'].set_linestyle(':') ax.set_ylabel('Distribution of Food Loss') ax.yaxis.grid(True, linestyle='--') diff --git a/print_game_time.py b/print_game_time.py new file mode 100644 index 0000000..6031978 --- /dev/null +++ b/print_game_time.py @@ -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)))) \ No newline at end of file