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
89
89
x = np.random.randn(N)
90
90
y = np.random.randn(N).astype(' float32' )
91
91
z = np.random.randint(size = N, low = 0 , high = 256 , dtype = ' uint8' )
92
+ c = np.random.randint(size = N, low = - 10 , high = 10 , dtype = ' int8' )
92
93
93
94
fig = go.Figure(data = [go.Scatter3d(
94
95
x = b64(x),
95
96
y = b64(y),
96
97
z = b64(z),
98
+ marker = dict (color = b64(c)),
97
99
mode = ' markers' ,
98
- opacity = 0.1
100
+ opacity = 0.2
99
101
)])
100
102
101
103
fig.show()
@@ -114,13 +116,15 @@ N = 10000
114
116
x = np.random.randn(N)
115
117
y = np.random.randn(N).astype(' float32' )
116
118
z = np.random.randint(size = N, low = 0 , high = 256 , dtype = ' uint8' )
119
+ c = np.random.randint(size = N, low = - 10 , high = 10 , dtype = ' int8' )
117
120
118
121
fig = go.Figure(data = [go.Scatter3d(
119
122
x = x,
120
123
y = y,
121
124
z = z,
125
+ marker = dict (color = c),
122
126
mode = ' markers' ,
123
- opacity = 0.1
127
+ opacity = 0.2
124
128
)])
125
129
126
130
fig.show()
You can’t perform that action at this time.
0 commit comments