In [1]:
%pylab inline
from biokit.viz import Heatmap
from biokit.viz.heatmap import get_heatmap_df
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)
In [ ]: