In [19]:
import itertools
import sys
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
sys.path.append('..')
from antlia import lidar
from antlia import plot_braking as braking
%load_ext autoreload
%autoreload 2
DEFAULT_FIGSIZE = (14, 7)
In [4]:
records = lidar.load_records(sync=False)
In [23]:
plt.close('all')
for rid, tid in itertools.product(range(4), range(15)):
record = records[rid]
trial = record.trial[tid]
fig, ax = braking.plot_trial_braking_event(
trial.data, figsize=DEFAULT_FIGSIZE)
ax.set_title('rider {} trial {}'.format(rid, tid))
plt.show()