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')