Stairstep colormap generator
July 2016, Bruxelles
Back to HOMEPAGE
This stupidly simple Octave script generates a piecewise constant colormap for ParaView,
such as the one in the picture.
This may be used for example to overcome the difficulty of ParaView of computing contours on
unstructured meshes.
The first step is choosing in the source file the output filename and a vector of values,
called Yval.
The program splits the colors from blue to red into as many equal pieces as are the
number of specified values, then to any specified interval a color is assigned.
The code is here:
Paraview Colormap Creator
And a sample colormap is here:
a colormap..
Here's an example (in case you're wondering, it's an hypersonic air flow past a soccer ball):
Cheers!
Back to HOMEPAGE