In [2]:
    
%matplotlib inline
from pymatbridge import Octave
octave = Octave()
octave.start()
%load_ext pymatbridge
    
    
In [6]:
    
import plotly.plotly as py
from plotly.graph_objs import *
    
In [7]:
    
trace0 = Scatter(
    x=[1, 2, 3, 4],
    y=[10, 15, 13, 17]
)
trace1 = Scatter(
    x=[1, 2, 3, 4],
    y=[16, 5, 11, 9]
)
data = Data([trace0, trace1])
py.iplot(data, filename = 'basic-line')
    
    Out[7]:
In [8]:
    
import matplotlib.pyplot as plt
import numpy as np
import plotly.plotly as py
n = 50
x, y, z, s, ew = np.random.rand(5, n)
c, ec = np.random.rand(2, n, 4)
area_scale, width_scale = 500, 5
fig, ax = plt.subplots()
sc = ax.scatter(x, y, c=c,
                s=np.square(s)*area_scale,
                edgecolor=ec,
                linewidth=ew*width_scale)
ax.grid()
py.iplot_mpl(fig)
    
    Out[8]:
In [9]:
    
import plotly.tools as tls
tls.embed("https://plot.ly/~streaming-demos/4")
    
    Out[9]: