File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -89,13 +89,15 @@ N = 10000
8989x = np.random.randn(N)
9090y = np.random.randn(N).astype(' float32' )
9191z = np.random.randint(size = N, low = 0 , high = 256 , dtype = ' uint8' )
92+ c = np.random.randint(size = N, low = - 10 , high = 10 , dtype = ' int8' )
9293
9394fig = go.Figure(data = [go.Scatter3d(
9495 x = b64(x),
9596 y = b64(y),
9697 z = b64(z),
98+ marker = dict (color = b64(c)),
9799 mode = ' markers' ,
98- opacity = 0.1
100+ opacity = 0.2
99101)])
100102
101103fig.show()
@@ -114,13 +116,15 @@ N = 10000
114116x = np.random.randn(N)
115117y = np.random.randn(N).astype(' float32' )
116118z = np.random.randint(size = N, low = 0 , high = 256 , dtype = ' uint8' )
119+ c = np.random.randint(size = N, low = - 10 , high = 10 , dtype = ' int8' )
117120
118121fig = go.Figure(data = [go.Scatter3d(
119122 x = x,
120123 y = y,
121124 z = z,
125+ marker = dict (color = c),
122126 mode = ' markers' ,
123- opacity = 0.1
127+ opacity = 0.2
124128)])
125129
126130fig.show()
You can’t perform that action at this time.
0 commit comments