File tree Expand file tree Collapse file tree 1 file changed +2
-56
lines changed Expand file tree Collapse file tree 1 file changed +2
-56
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ jupyter:
22
22
pygments_lexer : ipython3
23
23
version : 3.11.10
24
24
plotly :
25
- description : Recommendations for increased speed, improved interactivity,
26
- and the ability to plot even more data!
25
+ description : Recommendations for increased speed, improved interactivity, and
26
+ the ability to plot even more data!
27
27
display_as : basic
28
28
language : python
29
29
layout : base
@@ -152,60 +152,6 @@ fig.add_trace(
152
152
fig.show()
153
153
```
154
154
155
- #### WebGL Rendering with 1 Million Points
156
-
157
- ``` python
158
- import plotly.graph_objects as go
159
-
160
- import numpy as np
161
-
162
- N = 1000000
163
-
164
- # Create figure
165
- fig = go.Figure()
166
-
167
- fig.add_trace(
168
- go.Scattergl(
169
- x = np.random.randn(N),
170
- y = np.random.randn(N),
171
- mode = ' markers' ,
172
- marker = dict (
173
- line = dict (
174
- width = 1 ,
175
- color = ' DarkSlateGrey' )
176
- )
177
- )
178
- )
179
-
180
- fig.show()
181
- ```
182
-
183
- #### WebGL with many traces
184
-
185
- ``` python
186
- import plotly.graph_objects as go
187
-
188
- import numpy as np
189
-
190
- fig = go.Figure()
191
-
192
- trace_num = 10
193
- point_num = 5000
194
- for i in range (trace_num):
195
- fig.add_trace(
196
- go.Scattergl(
197
- x = np.linspace(0 , 1 , point_num),
198
- y = np.random.randn(point_num)+ (i* 5 )
199
- )
200
- )
201
-
202
- fig.update_layout(showlegend = False )
203
-
204
- fig.show()
205
- ```
206
-
207
- ### Reference
208
-
209
155
See https://plotly.com/python/reference/scattergl/ for more information and chart attribute options!
210
156
211
157
## Pandas and NumPy for Improved Performance
You can’t perform that action at this time.
0 commit comments