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
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]:
In [4]:
spike_trains = load_anf_zilany2014()
In [5]:
th.plot_raster(spike_trains)
Out[5]:
In [5]: