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)


The autoreload extension is already loaded. To reload it, use:
  %reload_ext autoreload

In [4]:
records = lidar.load_records(sync=False)


Unable to determine range 2
Unable to determine range 1

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()


/Users/oliver/miniconda3/envs/dev/lib/python3.5/site-packages/matplotlib/pyplot.py:524: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`).
  max_open_warning, RuntimeWarning)