Skip to content

Instantly share code, notes, and snippets.

@shunkino
Last active November 28, 2018 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shunkino/0f6d1f1a353a77125d988135d31b731f to your computer and use it in GitHub Desktop.
Save shunkino/0f6d1f1a353a77125d988135d31b731f to your computer and use it in GitHub Desktop.
error occurs... for my blog
import plotly.graph_objs as go
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
import numpy as np
import colorlover as cl
N = 10000
cluster_id = [np.random.randint(N/1000) for val in range(N)]
trace = go.Scattergl(
x = np.random.randn(N),
y = np.random.randn(N),
mode = 'markers',
marker = dict(
colorscale=cl.scales['12']['qual']['Set3'],
color=cluster_id,
line = dict(
width = 1,
color = '#404040')
)
)
data = [trace]
iplot(data, filename='WebGL100000')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment