heatmap demonstration


In [1]:
%pylab inline
from biokit.viz import Heatmap
from biokit.viz.heatmap import get_heatmap_df


Populating the interactive namespace from numpy and matplotlib

In [2]:
df = get_heatmap_df() # this is a simple test example

In [3]:
h = Heatmap(df)
layout = h.plot()



In [4]:
import pandas as pd
df = pd.DataFrame(numpy.random.randn(40,40))
df[0] += 5
df[10] +=10
df[20] +=5
df.ix[5] += 5
df.ix[15] +=5
df.ix[25] +=5

h.df = df.copy()
layout = h.plot(cmap="RdGy",vmin=-5, vmax=10)


/home/cokelaer/miniconda3/envs/py3/lib/python3.5/site-packages/ipykernel_launcher.py:6: DeprecationWarning: 
.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing

See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated
  

In [ ]: