import os
from lightning import Lightning
from numpy import random
lgn = Lightning(ipython=True, host='http://public.lightning-viz.org')
Connected to server at http://public.lightning-viz.org
We'll generate some normally distributed values and make a histogram
values = random.randn(100)
lgn.histogram(values, 10, zoom=False)
Change the number of bins
lgn.histogram(values, 50, zoom=False)
If we turn on zooming, we can change the number of bins dynamically by zooming in and out -- try it!
lgn.histogram(values, 25, zoom=True)