InsightSoftwareConsortium / InsightSoftwareConsortium/itkwidgets

Colormap Issues

Open
#345 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
624
Forks
83
PR merge metrics
No merged PRs in 30d

Description

I'm trying to add a custom colormap for use with a point cloud. I would like each point to have its own color. I have two arrays one containing the X,Y,Z coordinates of each point and the other contains the RGB values. From what I understand the only way I can colorize each point individually is through a colormap, is this correct?

When trying to change the colormap to a custom one I get the following error:
```
The 'cmap' trait of a Viewer instance must be a list or None, but a value of class 'numpy.ndarray' [....] was specified.
```

In fact, the example [SpecifyAColormap](https://github.com/InsightSoftwareConsortium/itkwidgets/blob/master/examples/SpecifyAColormap.ipynb) seems to suffer the same error.

I'm using version 0.30.0 on ubuntu 18.04. Any ideas?
Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.