import plotly plotly.__version__ import plotly.plotly as py import plotly.tools as tls from plotly.graph_objs import * help(Marker) colorscale= [[0, "rgb(255,0,0)"],[0.066667,"rgb(204,0,0)"],[0.13333,"rgb(255,127,64)"], [0.2,"rgb(255,85,0)"],[0.26667,"rgb(255,170,0)"],[0.33333,"rgb(255,255,0)"],[0.4,"rgb(128,255,0)"], [0.46667,"rgb(0,255,0)"],[0.53333,"rgb(0,255,129)"],[0.6,"rgb(0,255,255)"],[0.66667,"rgb(0,170,255)"], [0.73333,"rgb(0,62,255)"],[0.8,"rgb(115,0,230)"],[0.86667,"rgb(103,0,204)"],[0.93333,"rgb(77,0,153)"], [1,"rgb(153,0,122)"]] colorscale data = Data([ Scatter( x=[0, 1, 2, 3], y=[0.2, 0.1, -0.3, 0.8], name='wave0', mode='markers', marker=Marker( symbol='dot', line=Line( color='rgb(0,254,254)', width=2 ), size=21, color=[0.2, 0.1, -0.3, 0.8], colorscale=colorscale ) ) ]) py.iplot(data, filename='colorscale-test') fig_get = py.get_figure("https://plot.ly/~etpinard/324/wave0/") print fig_get.to_string() py.iplot(fig_get, filename='colorscale-test-replay') from IPython.display import display, HTML import urllib2 url = 'https://raw.githubusercontent.com/plotly/python-user-guide/master/custom.css' display(HTML(urllib2.urlopen(url).read()))