Currently I am defining custom color maps following this guide. The problem I have is that the colors are scaled when the data range changes. Unless I am missing something.
I am trying to create a colormap like this one
In this map the mapping between scalar values and RGB is fixed and the colors should not change if I change the data range to, say, [0, 32]. In this example I would see only the three colors: light blue, green and pink.
The images are initially generated via a python script but the user can rescale the data range.
I guess I could add the RGB colors in the VTK file itself (legacy VTK), but I wonder whether there is a different, simpler approach.