Strange surface plot
@9prady9 đang làm issue này rồi.
Từ ngày 22/11/2017.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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!
- Ngôn ngữ chính
- C++
- Star
- 238
- Fork
- 46
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của arrayfire/forge
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
question
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
enhancement
Tất cả issue của arrayfire/forge
Issue tương tự
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
QuantStack/git2cpp#187 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
AXERA-TECH/ax-llm#77 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
games-on-whales/wolf#509 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100