Hello,
A custom cmap is easy to define in the dislin Fortran 90 binding, but what do I provide to python?
Providing 3 lists r = [...(256 floats 0-1) ...]; g = [...]; b = [...]
ds.myvlt(r,g,b,256)
produces ValueError: parameter is not a sequence
which is uninformative because lists *are* python sequences.
Using the numpy equivalent
r = np.array([...],np.float32); g = ...
ds.myvlt(r.tolist(),g.tolist(),b.tolist(),256)
which works for all other dislin calls using numpy, also fails w/
AttributeError: 'function' object has no attribute 'tolist'
So, what please is the correct call?
Thank you