Coming Soon in VTK 10: Symlog Color Scaling!
When scalar values span several orders of magnitude, traditional linear color maps often obscure subtle details and leave critical data features hidden in plain sight. While logarithmic scaling brings remarkable clarity across wide scalar ranges, it falls short when dealing with data that crosses zero. We are thrilled to announce that VTK 10 is bringing a game-changing solution: symmetric logarithmic (symlog) scaling in both vtkLookupTable and vtkColorTransferFunction! For a scalar value x and a positive transition threshold C in the same units, this dynamic mapping is defined as:
Near zero i.e. for values much smaller in magnitude than C, the mapping is approximately linear:
Farther from zero, it seamlessly transitions to logarithmic scaling! By tuning C, you gain unprecedented control: reducing C dramatically highlights fine details near zero, while increasing it maintains a broader linear baseline. Best of all, for a lookup table with scalar range [a,b], your data values and transfer-function control points stay conveniently in their original units.
The remarkable impact of symlog scaling is evident in the comparisons below across surface coloring, streamlines, and medical images! Consider this striking data insight: in our test dataset, 55.3% of valid samples lie between -5 and +5, yet a standard linear map squashes all that rich detail into a tiny 2% slice of the color range. Narrowing the linear range makes those subtle variations pop, but clips an enormous 29% of your data. Symlog delivers the best of both worlds—allocating a vibrant 32.4% of the spectrum to that critical central region while preserving full visibility of extreme positive and negative values!


![The same scalar data sampled on a plane through the motorbike dataset. Linear and symlog use [-250,+250]; the reduced linear range is [-10,+10]. Symlog uses C = 1. Gray marks invalid probe samples. Scalar values retain their original units.](https://www.kitware.com/main/wp-content/uploads/2026/12/vtk-10-symlog-03.webp)
![Identical shapes with scalar values reaching ±5, ±50, and ±500. The full scalar range is [-600,+600]; the reduced linear range is [-10,+10]. Symlog uses C = 1. Equal-size swatches compare the colors assigned to the same selected scalar values.](https://www.kitware.com/main/wp-content/uploads/2026/12/vtk-10-symlog-04.webp)
Symlog color scale is coming in VTK 10! The feature is already live in VTK master via MR !13792. You don’t have to wait for the official release to update your visualization pipelines—follow VTK’s build instructions to build the latest master today. Here is how easy it is to get started in Python or C++:
Python
from vtkmodules.vtkRenderingCore
import vtkColorTransferFunction
colors = vtkColorTransferFunction()
colors.AddRGBPoint(-600.0, 0.1, 0.3, 0.8)
colors.AddRGBPoint( 0.0, 0.95, 0.95, 0.95)
colors.AddRGBPoint( 600.0, 0.8, 0.2, 0.1)
colors.SetScaleToSymlog()
colors.SetSymlogLinearThreshold(1.5)
mapper.SetLookupTable(colors)
mapper.UseLookupTableScalarRangeOn()
mapper.SetColorModeToMapScalars()
mapper.ScalarVisibilityOn()
C++
#include <vtkColorTransferFunction.h>
#include <vtkNew.h>
vtkNew<vtkColorTransferFunction> colors;
colors->AddRGBPoint(-600.0, 0.1, 0.3, 0.8);
colors->AddRGBPoint(0.0, 0.95, 0.95, 0.95);
colors->AddRGBPoint(600.0, 0.8, 0.2, 0.1);
colors->SetScaleToSymlog();
colors->SetSymlogLinearThreshold(1.5);
mapper->SetLookupTable(colors);
mapper->UseLookupTableScalarRangeOn();
mapper->SetColorModeToMapScalars();
mapper->ScalarVisibilityOn();
With VTK 10.0.0 on the horizon, symmetric logarithmic color scaling represents a major step forward for data visualization across complex, multi-scale datasets. By bridging the gap between linear clarity near zero and logarithmic range across extreme values, symlog unlocks insights that were previously hidden or clipped. We invite you to try out symlog color scaling in your own visualization workflows today, test it with your data, and let us know your feedback!
Save the Date for VTK Project Days
Join us February 23–24, 2027, for the inaugural VTK Project Days as we celebrate VTK 10 with the VTK community. You can attend in person at Kitware headquarters in Clifton Park, New York, or participate online. The registration link will be available in December 2026.
Save the Date