In [1]:
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
%matplotlib inline

import w3g

In [2]:
f = w3g.File('/home/scopatz/Downloads/141103_[NE]_VS_[NE]Zhou_xixi_EchoIsles_RN.w3g')

In [3]:
winner = f.winner()
for pid, (t, a) in f.timeseries_actions().items():
    label = f.player_name(pid)
    if pid == winner:
        label += ' (winner)'
    plt.plot(np.array(t, 'f8')/60000, a, label=label)
plt.xlabel('time [min]')
plt.ylabel('Cumulative Actions')
plt.legend(loc=0)


Out[3]:
<matplotlib.legend.Legend at 0x7f73cd107cc0>