In [1]:
%matplotlib inline

In [2]:
from __future__ import division, print_function, absolute_import

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

import thorns as th
import thorns.waves as wv
from thorns.datasets import load_anf_zilany2014

Waves Demo


In [3]:
sound = wv.amplitude_modulated_tone(
    fs=48e3,
    fm=100,
    fc=1e3,
    m=0.7,
    duration=0.1,
)

wv.plot_signal(sound, fs=48e3)


Out[3]:
<matplotlib.axes.AxesSubplot at 0x81ca51a90>

Thorns Demo


In [4]:
spike_trains = load_anf_zilany2014()

In [5]:
th.plot_raster(spike_trains)


Out[5]:
<matplotlib.axes.AxesSubplot at 0x81ca85ed0>

In [5]: