Plotly 中大型数据集的 Scatter 3D
Scatter 3D for Large Data-Set in Plotly
我有一个 3D 散点图,想在 python 中使用 Plotly 进行绘图。问题是数据帧的大小太大,我想使用 webgl 来绘制图形。据我所知,plotly 具有 go.Scatter3d
函数来绘制散点图。此外,还有一个 go.Scattergl
来绘制大型数据集。但是,您找不到类似 go.Scatter3Dgl
的内容。我该怎么办?
我相信 3D 散点图默认使用 webgl。如果您检查 scatter_3d
,您会发现它在 class="gl-container"
中。同样,常规 Scatter
在 class="main-svg
中,而 Scattergl
在 class="gl-container"
.
中
来自plotly:
Note: It is important to note that any figures containing WebGL traces
(i.e. of type scattergl, heatmapgl, contourgl, scatter3d, surface,
mesh3d, scatterpolargl, cone, streamtube, splom, or parcoords) that
are exported in a vector format will include encapsulated rasters,
instead of vectors, for some parts of the image.
我有一个 3D 散点图,想在 python 中使用 Plotly 进行绘图。问题是数据帧的大小太大,我想使用 webgl 来绘制图形。据我所知,plotly 具有 go.Scatter3d
函数来绘制散点图。此外,还有一个 go.Scattergl
来绘制大型数据集。但是,您找不到类似 go.Scatter3Dgl
的内容。我该怎么办?
我相信 3D 散点图默认使用 webgl。如果您检查 scatter_3d
,您会发现它在 class="gl-container"
中。同样,常规 Scatter
在 class="main-svg
中,而 Scattergl
在 class="gl-container"
.
来自plotly:
Note: It is important to note that any figures containing WebGL traces (i.e. of type scattergl, heatmapgl, contourgl, scatter3d, surface, mesh3d, scatterpolargl, cone, streamtube, splom, or parcoords) that are exported in a vector format will include encapsulated rasters, instead of vectors, for some parts of the image.