lgn = Lightning(ipython=True, host='//public.lightning-viz.org')
Connected to server at //public.lightning-viz.org
The Lightning client let's you easily control plot size by specifying the width in pixels. Let's try a few sizes for the same plot.
x = random.rand(100) y = random.rand(100) mat = random.rand(100,100) mat[mat<0.99] = 0
lgn.graph(x, y, mat, width=400)
lgn.graph(x, y, mat, width=800)
Especially when working in the notebook, it can be useful to specify a size globally. We've predefined four sizes: small, medium, large, and full. Generally, full will be the largest, but full is also adaptive and will match the size of the enclosing div, whereas the others correspond to fixed pixel widths of 400, 600, and 800. The default for notebooks is medium, but for some plot types and use cases you may prefer others.
series = random.randn(5,50)