What we do here

Here we load the serie file, perform different normalization and cutting of the data. We test the tie action also.


In [ ]:
import Match
import os
%matplotlib inline

In [ ]:
reload(Match)

Serie Test


In [ ]:
s = Match.Serie("LR04core")
s.report()

In [ ]:
s.plot()

Set Limits

Limits are plotted as gray shaded bars below serie in plot() method


In [ ]:
s = Match.Serie("LR04core")
s.setLimits(1000, 3000).plot()

In [ ]:
s.setLimits(1000,3000, True).plot()

Normalize

There are two different normalization approches with different parameters.


In [ ]:
s = Match.Serie("LR04core")
s.setLimits(1000, 3000).plot()

In [ ]:
s.normalize(True).plot()

In [ ]:
s.normalize(False).plot()

In [ ]:
s.normalize(False, s.normalizeStd()).plot()

In [ ]:
s.normalizeStd(True).plot()

In [ ]:
s.normalizeStd(False).plot()

In [ ]:
s.setLimits(1000, 3000, True).plot()

Test the tie point add

we add two ties, A and B


In [ ]:
s.setTie("A", 1250).setTie("B", 2250).plot()

In [ ]:
s.save()

In [ ]:
s.saveas("teste.dat")

In [ ]:
os.unlink("teste.dat")