问题标签 [scatter3d]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
344 浏览

highcharts - 在触控设备上启用 Highcharts 3D 散点图的旋转

在我的 Web 应用程序中,我使用了这个使用 Highcharts 渲染的漂亮的 3D 散点图。

通过单击并拖动鼠标,它确实可以很好地旋转。

但是,在我的手机和平板电脑上,它也会旋转。

启用旋转的代码如下(取自 Highcharts 示例页面):

我假设注册此逻辑的事件在我的设备(最近的三星 Galaxy Tab 和三星 Galaxy S5)上不可用。

有任何想法吗?

0 投票
0 回答
62 浏览

r - 当依赖项是二进制时如何解释scatter3d(汽车库)的表面

我正在尝试使用汽车包装中的 scatter3d。我的代码如下:

输出如下:

没有光滑表面的散点图

具有光滑表面的散点图

我的问题是如何解释平滑表面——假设依赖项是二进制的?我应该将其解释为概率吗?然而,它的高度不限于范围 [0,1]。

或者,我不应该使用带有二进制变量的光滑表面?

您的建议将不胜感激。

0 投票
1 回答
2703 浏览

python - Matplotlib 3D Scatter 动画序列数据

我制作了一些加速度计数据的以下 3D 散点图:

3D 散点图

这是非常基本的,但考虑到这是我第一次尝试使用 Python,我对它的外观感到满意。这是我为进行此可视化而编写的代码:

数据按时间戳索引,如下所示:

在此处输入图像描述

接下来我想做的是采用上面的情节,并让每个点一次进入一个。有没有一种简单的方法可以做到这一点?查看matplotlib中的示例,它们看起来像是在使用随机生成的数据,然后对线条进行动画处理。我不确定如何编写更新每行数据的图形的函数。

如果有人可以指导我做一个类似的例子,我真的很感激。到目前为止,我的搜索只得到了数据由函数生成或随机生成的示例。

0 投票
1 回答
3264 浏览

r - 如何在R中的3d图中绘制线条

我有这两个用 R 制作的 3d 图,有两个不同的功能:

我想在这两个图中绘制以下线条和它们之间的交叉区域:

在两个图中绘制的线

在两个图中绘制的线

0 投票
0 回答
408 浏览

python-2.7 - 3D matplotlib 散点图中的照明

我有一个看起来像......云的点云。它在某些地方有凸起的特征​​,在其他地方有“折痕”。

为了说明我的问题,我在下面附上了一张示例图片(用于创建第一个点云的脚本在最后)。

在此处输入图像描述

但是,由于所有点都是红色的,所以蓝色矩形内的拓扑结构是看不到的,并且没有人工照明。拓扑更好地显示在同一数据集的不同视图中(第 2 和第 3 图像)。已包含第二种颜色以进一步说明这一点。

在此处输入图像描述

有没有办法在散点图中添加某种照明,使折痕/凸起更加明显?

0 投票
1 回答
514 浏览

r - R Shiny中的RGL在鼠标左键单击时不旋转

就在不久前,迈克回答了我关于如何在闪亮中嵌入 rgl 的问题,但我们似乎偶然发现了另一个问题,

这是代码示例:

更改 rgl.open(useNULL=F)rgl.open(useNULL=T)将停止显示弹出窗口,但在任何一种情况下,闪亮页面中的 rgl 都会缩放,但不会旋转。

似乎鼠标右键单击注册并起作用,而鼠标左键单击无法识别....

0 投票
1 回答
257 浏览

r - scatter3d ellipsoid argument inside shiny R failing

Two steps forward, one step back. The last weeks I've run into a few issues that I could not solve on my own as a self tought user with 1 year experience in R, but fortunatly there are great people on this site that have helped me a lot! First of all, thanks for that guys.

Seems now that we have found a way to get scatter3d plots into the Shiny App i'm building, and get the left mouse button to work (see my previous questions) I've now come across a bug that I don't understand.

The bug says this: the leading minor of order 3 is not positive definite after a while of puzzling, I found out that it is inside the ellipsoid argument of scatter3d.

running this works fine:

Switching to ellipsoid = TRUE gives the error and nothing renders in shiny

Running the graph without shiny by just running these lines:

works as in that it renders inside the rgl window, but still prints the error of course.

changing the number of groups to less than 14 seems to solve it: groups <- as.factor(rep(1:13,5)) groups <- groups[1:50]
gives no error. groups <- as.factor(rep(1:14,5)) groups <- groups[1:50] gives the error..... very strange.

At first I thought it might be linked to the build in nr of colors of scatter3d because up to 8 groups, it colors things automatically without specifying surface.col. As soon as you have 9 groups, you need to give it a palette yourself, but this nr 13 cutoff seems rather awkward....

  • I tagged it as RGL as well although it's not part of the problem so that some people following my other RGL related question can see I've put this issue in a new question.
0 投票
1 回答
10050 浏览

python - 如何连接python ax.scatter 3D图中的点

我在 python 中有一个 3D 图,我使用ax.scatter(x,y,z,c='r',s=100) 的是

我想用一条线连接我的点。我知道你可以做到这一点,marker='-o'但这对我来说只适用于 2D 而不是 3D。任何人都可以帮忙吗?谢谢你。

0 投票
1 回答
64 浏览

matlab - Matlab:使用scatter3绘制水平方块

在此处输入图像描述

我知道scatter3可以画垂直正方形,但是我想画水平正方形,与浅红色的两个界面平行。我尝试了旋转功能,但它不起作用。

0 投票
0 回答
55 浏览

r - R 3d绘图错误与相交平面

这让我一整天都难过。谁能帮我理解为什么我的数据为我提供了这些图,这些图在我的 3D 散点图旁边包含相交平面?这些平面使用以下所有 3 种方法发生。

我在使用创建附加数据集的矩阵的 unlist 时可能存在问题。

链接 源数据

散点图上的 3D 平面

链接 源数据