#!/usr/bin/env python # coding: utf-8 # # wrapping of pylab hist2d function. # In[1]: from biokit import viz get_ipython().run_line_magic('pylab', 'inline') # In[2]: X = pylab.randn(10000) Y = pylab.randn(10000) # In[3]: import pandas as pd df = pd.DataFrame({'X':X, 'Y':Y}) # In[4]: from biokit.viz import hist2d h = hist2d.Hist2D(df) res = h.plot(bins=[40,40], contour=True, nnorm='log', Nlevels=6) # In[ ]: # In[ ]: