arrayfire / arrayfire/arrayfire

Add support to set color for plots

Open
#2,684 7 comments 0 reactions 1 assignee Claimed by @9prady9 View on GitHub
feature graphics
Dominant language
C++
Stars
4.9k
Forks
555
Avg merge
1h 24m
Merged PRs (30d)
1

Description

```cpp
#include

int main()
{
const int n = 10;
af::array X(n);
af::array Y(n);
for(int i = 0; i < n; i++)
{
X(i) = i + 1;
Y(i) = (i + 1) * (i + 1);
}
af::Window win;
win.setColorMap(AF_COLORMAP_BLUE);
while (true)
{
win.plot(X, Y);
win.show();
}
}
```

The colour of the line is still red and doesn't change.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.