Skip to content
Snippets Groups Projects
Select Git revision
  • 5265af0b43703e7b8435303c1297f924db57741b
  • master default protected
2 results

lab4-pylab.py

Blame
  • lab4-pylab.py 284 B
    import plotly.plotly as py
    import plotly.tools as tls
    
    import pylab as plt
    
    fig = plt.figure()
    
    x = 0.25*plt.randn(1000)
    y = 0.3*plt.randn(1000)
    n, bins, patches = plt.hist([x, y])
    
    plotly_fig = tls.mpl_to_plotly( fig )
    py.iplot(plotly_fig, filename='mpl-multi-histogram')