Skip to content

Commit 56bb8fc

Browse files
committed
remove extra webgl examples
1 parent 6c6c27b commit 56bb8fc

File tree

1 file changed

+2
-56
lines changed

1 file changed

+2
-56
lines changed

doc/python/webgl-vs-svg.md

Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jupyter:
2222
pygments_lexer: ipython3
2323
version: 3.11.10
2424
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!
2727
display_as: basic
2828
language: python
2929
layout: base
@@ -152,60 +152,6 @@ fig.add_trace(
152152
fig.show()
153153
```
154154

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-
209155
See https://plotly.com/python/reference/scattergl/ for more information and chart attribute options!
210156

211157
## Pandas and NumPy for Improved Performance

0 commit comments

Comments
 (0)