In [1]:
__author__ = '__fbb__'
#github @fedhere
#fedhere@gmail.com
#test for sparkleme module https://github.com/fedhere/sparklpy/
#makes some fake data and plots it as sparkle lines
In [2]:
from __future__ import print_function
import numpy as np
from scipy import stats
import matplotlib.pyplot as pl
import sparkleme
%pylab inline
In [3]:
#generating data: noisy random sine waves
data = np.ones((100,10))
data = np.random.randn(10,100) + \
np.cos( (data / (np.pi*10*np.random.rand(10))).T * np.arange(100))
In [4]:
fig = pl.figure(figsize = (10,20))
#remember to catch the output or the plot will be displayed twice!
fig = sparkleme.sparklme(data, figure=fig)
In [ ]: