Skip to content
Snippets Groups Projects
Commit bc847e5c authored by Dieter Weber's avatar Dieter Weber
Browse files

Do not convert to ndarray since supporting ragged tuples is useful for 2D visualization,

like (data.real, data.imag, 0) for complex numbers. This will trigger a deprecation warning since NumPy 1.19.
parent dbc9dc02
No related branches found
No related tags found
No related merge requests found
Pipeline #30288 passed
......@@ -64,7 +64,7 @@ class Colormap3D(colors.Colormap, metaclass=abc.ABCMeta):
"""
self._log.debug('Calling rgb_from_vector')
x, y, z = np.asarray(vector)
x, y, z = vector
R = np.sqrt(x ** 2 + y ** 2 + z ** 2)
R_max = vmax if vmax is not None else R.max() + 1E-30
# FIRST color dimension: HUE (1D ring/angular direction)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment