You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/python/performance.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ jupyter:
30
30
name: High Performance Visualization
31
31
order: 14
32
32
permalink: python/performance/
33
-
redirect_from:
33
+
redirect_from:
34
34
- python/webgl-vs-svg/
35
35
- python/datashader/
36
36
thumbnail: thumbnail/webgl.jpg
@@ -55,7 +55,7 @@ Each `plotly` trace type is rendered with either SVG or WebGL. The following tra
55
55
WebGL is a powerful technology for accelerating computation but comes with some strict limitations:
56
56
57
57
1. GPU requirement: WebGL is a GPU (graphics card) technology and therefore requires specific hardware which is available in most but not all cases and is supported by most but not all browsers.
58
-
2. Rasterization: WebGL-rendered data is drawn as a grid of pixels rather than as individual shapes, so can appear pixelated or fuzz in certain cases, and when exported to static file formats will appear pixelated on zoom. In addition: text rendering will differ between SVG and WebGL-powered traces.
58
+
2. Rasterization: WebGL-rendered data is drawn as a grid of pixels rather than as individual shapes, so can appear pixelated or fuzz in certain cases, and when exported to static file formats will appear pixelated on zoom. In addition, text rendering will differ between SVG and WebGL-powered traces.
59
59
3. Context limits: browsers impose a strict limit on the number of WebGL "contexts" that any given web document can access. WebGL-powered traces in `plotly` can use multiple contexts in some cases but as a general rule, **it may not be possible to render more than 8 WebGL-involving figures on the same page at the same time.** See the following section, Multiple WebGL Contexts, for more details.
60
60
4. Size limits: browsers impose hardware-dependent limits on the height and width of figures using WebGL which users may encounter with extremely large plots (e.g. tens of thousands of pixels of height).
61
61
@@ -165,7 +165,7 @@ Plotly.py uses Plotly.js for rendering, which supports typed arrays. In Plotly.p
165
165
The following types of objects in Python are supported for improved performance:
- Array objects that can be converted to `numpy.ndarray` objects. i.e., they implement `"__array__"` or `"__array_interface__"` and return a `numpy.ndarray`.
170
170
171
171
The following [array data types](https://numpy.org/devdocs/reference/arrays.scalars.html) are supported:
@@ -221,7 +221,7 @@ fig.show()
221
221
222
222
## Datashader
223
223
224
-
Use [Datashader](https://datashader.org/) to reduce the size of a dataset passed to the browser for rendering by creating a rasterized representation of the dataset. This makes it ideal for working with datasets of tens to hundreds of millions of points.
224
+
Use [Datashader](https://datashader.org/) to reduce the size of a dataset passed to the browser for rendering by creating a rasterized representation of the dataset. This makes it ideal for working with datasets of tens to hundreds of millions of points.
225
225
226
226
### Passing Datashader Rasters as a Tile Map Image Layer
0 commit comments