Strange surface plot
@9prady9 已经在做这个了。
开始于 2017年11月22日。
评估
这个 Issue 还没有评估数据。
描述
Hi, on my machine, the surface plot seems to have multiple issues. If I run the following code:
#include <arrayfire.h>
int main(int argc, char *argv[])
{
try {
af::info();
af::array X = af::seq(0., 0.4, 0.1);
af::array Y = af::seq(0., 0.9, 0.1);
af::array Z = af::constant(1., 5, 10);
af::Window window(1500, 800, "The door.");
do {
window.surface(X, Y, Z, "The weird surface");
} while(!window.close());
} catch (af::exception& e) {
fprintf(stderr, "%s\n", e.what());
throw;
}
return 0;
}
I see the following image (without the red lines):

The image has a few problems:
- The Y-axis labels are all the same.
- The X-axis labels are probably all the same as well.
- The surface is plotted in wrong position and probably scaled badly (hard to say).
System version:
ArrayFire v3.6.0 (OpenCL, 64-bit Linux, build default)
[0] INTEL: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz, 15930 MB
Linux pine 4.13.11-1-ARCH #1 SMP PREEMPT Thu Nov 2 10:25:56 CET 2017 x86_64 GNU/Linux
Both Forge from devel branch and from arrayfire behave the same, CPU backend as well.
Also when I resize the window, the program crashes with:
Failed to blit
[1] 788 segmentation fault (core dumped) ./a.out
Thank you for your help and for a nice high-performance visualization tool!
- 主要语言
- C++
- 星标
- 238
- 派生
- 46
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
arrayfire/forge 的其他 Issue
-
难度 5/5 一周以上 新手友好度 10/100
-
难度 5/5 一周以上 新手友好度 20/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
question
难度 5/5 一周以上 新手友好度 25/100
-
enhancement
相似的 Issue
-
bug build
难度 1/5 1 小时以内 新手友好度 91/100
facebookincubator/velox#19194 ·
-
JIT-compiled number -> Decimal conversion silently overflows instead of raising DECIMAL_OVERFLOW 未关闭fuzz
难度 2/5 1-3 小时 新手友好度 82/100
ClickHouse/ClickHouse#122114 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
-
module/agent platform/macos type/bug/regression
难度 2/5 1-3 小时 新手友好度 88/100
-
enhancement PyCDE
难度 2/5 1-3 小时 新手友好度 78/100