I am using a vtkColorTransfer function to apply colors to scalar values in my polydata. I am then applying this function to my scalarBarActor. This looks like the image below:
For a little more context - I am using images generated from vtk and creating gifs. The scalar bar in the gif is not being generated well inside of the gif due to the color limitations of gif files. I’d like to control the colors in the lookup table so that the generated gifs match the images rendered in vtk
After giving this a go, unfortunately it doesn’t seem like the colors applied in the lookup table are mapping to values. The scalar bar reflects this as it doesn’t contain any range of colors.
Any ideas what I am missing here? See below for code, and current output
Apologies in advance if its obvious, really hard to find documentation on this anywhere.