Complex numbers in Holoviews?

Hi all,

I have to visualize a significant amount of data involving np.complex128 data types. I’d like to do something like this:

data = np.array([np.random.randn(10)+1j*np.random.randn(10)])
holo_ds = hv.Dataset(data, ['mode', 'z'],'data')

Obviously, I would like to select either the real or imaginary part. Is there any support in holoviews for this?



You can certainly do it by pulling out the real or imaginary parts into different dims, but I don’t know a way to use the data in its original form as complex numbers.