Selecting Color Tables
For many plot types you can select the color table to use for coloring the surfaces, boundaries, contours, streamlines, slices, and so on. These color tables use 1024 colors each. The best way to compare the color tables is to experiment with the options. For an overview of the color tables and what they look like for some typical plots, see Overview of Color Tables and Their Usage.
The classic versions of some color tables correspond to that same color table in COMSOL Multiphysics versions earlier than version 6.0 (for example, RainbowClassic correspond to the Rainbow color table in versions before 6.0. The new versions of these color tables are typically less saturated, more uniform, more smooth, and more balanced.
AuroraAustralis, AuroraAustralisDark, AuroraBorealis, JupiterAuroraBorealis, and Twilight
The AuroraAustralis (), AuroraAustralisDark (), AuroraBorealis (), and JupiterAuroraBorealis () color tables resemble the colors in the aurora australis (southern light), aurora borealis (northern light), and Jupiter’s aurora, respectively. The AuroraAustralis color table spans from white through green and indigo to blue. The AuroraAustralisDark color is similar to AuroraAustralis but does not start with absolute white so that the end value’s color is different from a white background. The AuroraBorealis color table also spans from white through green and indigo to blue but with a larger indigo portion. The JupiterAuroraBorealis color table spans from black through blue to white.
The Twilight () color table uses colors associated with twilight (the illumination of the Earth’s lower atmosphere when the Sun is not directly visible), spanning colors from pink through white to blue.
Cividis
The Cividis () color table uses yellow and blue colors in a color table that is suited for normal vision, a deuteranomaly, or red-green colorblindness. It was created by Jamie Nuñez, Ryan Renslow, and Chris Anderton at the Biological Sciences Division of the Pacific Northwest National Laboratory (located in Richland, Washington state, United States).
Cyclic and CyclicClassic
The Cyclic () and CyclicClassic () color tables are useful for displaying periodic data. Examples are the phase variation of a propagating wave or its polarization angle. Another typical use case for Cyclic is the visualization of seemingly random data having many discrete levels (domain numbers, terminal numbers, port numbers, and so on). For these cases, Cyclic is convenient because of the large number of colors it contains. The colors begin with red, then pass through yellow, green, cyan, blue, magenta, and finally return to red.
Dipole and Dipole Dark
Dipole () has been developed for plots where the majority of the solution is close to zero (or centered around some meaningful reference point) and where, in some places, positive and negative excitations occur. Typical cases are the electric potential distribution around positively and negatively charged objects with the field relaxing to zero at infinity and the pressure distribution of an acoustic wave propagating in a large open space. For those cases, the scale tends to white in areas of relative inactivity, allowing for a good contrast with titles, legends, dataset edges, and other plot elements. This reasoning is similar to the one used for the Prism color table. The main difference is that Dipole is symmetric (or “diverging”), making it suitable for positive and negative scalar fields, whereas Prism is more suitable for vector field norms (which are positive only).
DipoleDark () is similar but uses slightly darker colors.
You can use a combination of Dipole color tables to visualize streamlines, contour lines, and arrows using DipoleDark on top of a surface plot using Dipole.
If zero is an important reference point, but the minimum and maximum values do not have the same magnitude, consider combining the color scale with the Scale setting Linear symmetric. If you would like to use more colors for a small range around zero and less colors for the extremes, consider using the Color table transformation setting Nonlinear symmetric.
Disco, DiscoClassic, DiscoDark, and DiscoLight
The Disco () and DiscoClassic () color tables span from red through magenta and cyan to blue. Like Rainbow, Disco has not been optimized for a particular use case. Unlike Rainbow, however, it has a strongly nonsymmetric luminance curve. This makes it less suitable as a general-purpose tool. Disco is typically not the first choice, but when an illustration already contains variants of Rainbow — or when Rainbow needs to be avoided for other reasons — Disco may provide an attractive alternative. DiscoDark () and DiscoLight () are similar but use darker and lighter colors, respectively.
You can use a combination of Disco color tables to visualize streamlines or contour lines using DiscoLight on top of a surface plot using Disco. The same way, DiscoDark can be used to draw on top of Disco.
Gaia and GaiaLight
The Gaia () color table spans colors that make it suitable for plots related to topography and bathymetry. The bottom half of the range is calibrated to have a linear luminance curve and is intended to represent depth measurements (below sea level): The brightness relates directly to the depth. The top half of the range represents elevation data (above sea level). The colors resemble different kinds of soil or vegetation, for different levels of elevation. As a result, an elevation plot using this color table will start to look like a landscape. The colors have been calibrated for central Europe, with the data ranging from 5 km depth to +5 km elevation. GaiaLight () is similar but use lighter colors.
You can use a combination of Gaia color tables to visualize streamlines or contour lines using GaiaLight on top of a surface plot using Gaia.
GrayBody and GrayBodyLight
The GrayBody () color table is based on the Planckian locus for blackbody radiation. It is useful within the context of metal processing, for example. GrayBodyLight () is similar but uses lighter colors.
You can use a combination of GrayBody color tables to visualize streamlines or contour lines using GrayBodyLight on top of a surface plot using GrayBody.
GrayScale and GrayPrint
The GrayScale () color table uses the linear gray scale from black to white — the easiest palette to interpret and order.
The GrayPrint () color table varies linearly from dark gray (RGB: 0.95, 0.95, 0.95) to light gray (RGB: 0.05, 0.05, 0.05). Choose this color table to overcome two difficulties that the GrayScale color table has when used for printing on paper — it gives the impression of being dominated by dark colors, and white is indistinguishable from the background.
Gray scale plots are often easier to use for publication. People can also better perceive structural detail in a gray scale than with color.
HeatCamera and HeatCameraLight
The HeatCamera () and HeatCameraLight () color tables resemble the typical scale used for thermography applications. Here, the lighter colors red, orange, and yellow correspond to higher temperatures (and more radiated heat). The purples and the blues refer to cooler temperatures and less radiation. HeatCamera is used as the default color table for plots involving one of the heat transfer physics interfaces. For a smoother and more perceptually uniform option, consider Inferno, Magma, or Plasma.
Inferno, Magma, and Plasma
The Inferno (), Magma (), and Plasma () color tables use a general bluish to reddish to yellowish color sequence, which is relatively friendly to common forms of color vision deficiencies. They are designed so that they are analytically perceptually uniform, both in regular form and when converted to black-and-white images. They were created by Stéfan van der Walt and Nathaniel Smith.
Prism and PrismDark
Prism () is slightly similar to the Rainbow color table but includes a white tip and is brighter. It has been developed for plots where the majority of the solution is close to zero (typically at the outer perimeter of the modeling domain) and where, in some places, singularities or “hot spots” occur. This is especially true for electric and magnetic field norms in electromagnetic models, but may also occur for stress and strain norms in structural mechanics models, for example. For those cases, the scale tends to white in areas of relative inactivity, allowing for a good contrast with titles, legends, dataset edges, and other plot elements. This is the default color table for plots when using one of the structural mechanics physics interfaces. It is also used as the default option for plotting electric and magnetic field norms in the low-frequency electromagnetics interfaces.
PrismDark () is similar but uses slightly darker colors. It can be used, in combination with Prism, to add arrows or streamlines on top of a plane, for instance. Close to the hot spots the contrast between the two color scales increases, and in the wake regions the contrast will fade.
You can use a combination of Prism color tables to visualize streamlines, contour lines, and arrows using PrismDark on top of a surface plot using Prism.
Rainbow, RainbowClassic, RainbowDark, and RainbowLight
Rainbow () is the default for most plots that support color tables. The colors range through shades of blue, cyan, green, yellow, and red. This color table is not optimized for a particular use case (nor is it perceptually uniform), but it is not really bad for most use cases either. Consequently, it serves very well as a general-purpose tool for quick result assessment. The disadvantage of this color table is that people with color vision deficiencies (affecting up to 10% of technical audiences) cannot see distinctions between reds and greens.
RainbowClassic () is the rainbow color table used in versions of COMSOL Multiphysics earlier than version 6.0. Compared to RainbowClassic, the current Rainbow color table is less saturated, more uniform, more smooth, and more balanced.
RainbowDark (), RainbowLight (), and RainbowLightClassic () are similar to Rainbow but use darker and lighter colors, respectively.
You can use a combination of Rainbow color tables to visualize streamlines or contour lines using RainbowLight on top of a surface plot using Rainbow. The same way, RainbowDark can be used to draw on top of Rainbow.
Spectrum, SpectrumClassic, and SpectrumLight
Spectrum () and SpectrumClassic () are similar to the Rainbow color tables but include violet at the short-wavelength end of the visible spectrum. They also include richer shades of green and less yellow and cyan to more closely replicate the human perception of visible light. The saturation and hue distribution have been derived from the chromatic response of the CIE 1931 Standard Observer. The included wavelengths range from 415 nm to 660 nm. SpectrumLight () is similar but uses lighter colors. You can use them with the Ray Optics Module, for example, to accurately visualize polychromatic light.
You can use a combination of Spectrum color tables to visualize streamlines or contour lines using SpectrumLight on top of a surface plot using Spectrum.
Thermal, ThermalClassic, ThermalDark, ThermalLight, ThermalLightClassic, ThermalWave, and ThermalWaveDark
Thermal () and ThermalLightClassic () more or less resemble the radiation pattern of a glowing piece of metal, where lighter colors refer to higher temperatures. These color tables are not optimized for a particular use case, but they are not really bad for most use cases either: Like Rainbow, the serve very well as general-purpose tools. However, for a more accurate approximation of a radiating graybody, consider one of the GrayBody color tables instead.
ThermalLight () is similar but use lighter colors. ThermalDark () and ThermalClassic () are similar but use darker colors.
You can use a combination of Thermal color tables to visualize streamlines or contour lines using ThermalLight on top of a surface plot using Thermal. The same way, ThermalDark can be used to draw on top of Thermal.
ThermalWave () is designed for wave phenomena of a thermal nature. It is used in one of the default plots for the thermoviscous acoustics and linearized Navier–Stokes physics. The colors relate to orange and blue flames, and the luminance distribution is calibrated to be fully symmetric.
ThermalWaveDark () is similar to ThermalWave but with darker colors, in particular in the center. The advantage is a stronger contrast and a more vibrant plot, and the disadvantage is that the darker colors do not contrast well with titles, legends, and dataset edges.
You can use a combination of ThermalWave color tables to visualize streamlines, contour lines, and arrows using ThermalWaveDark on top of a surface plot using ThermalWave.
Traffic, TrafficClassic, TrafficFlow, TrafficLight, and TrafficLightClassic
The Traffic () and TrafficClassic () color tables span from green through yellow to red. TrafficLight () and TrafficLightClassic () are similar but use lighter colors. The TrafficFlow () color table is specifically designed for visualizing mesh quality. The green half has a very soft gradient: All good mesh elements have about the same color when using a reversed TrafficFlow color table. This makes it much easier to focus on the mesh elements with a low quality.
You can use a combination of Traffic color tables to visualize streamlines or contour lines using TrafficLight on top of a surface plot using Traffic.
Viridis
The Viridis () color table uses a general bluish to greenish to yellowish color sequence, which is relatively friendly to common forms of color vision deficiencies. It is designed so that it is analytically perceptually uniform, both in regular form and when converted to a black-and-white image. It was created by Stéfan van der Walt and Nathaniel Smith.
Wave, WaveClassic, WaveLight, WaveLightClassic
The Wave () and WaveClassic () color tables are useful for data that naturally has positive and negative attributes in addition to a magnitude. Like ThermalWave, Wave has two clearly distinct hues on both sides of the center to indicate “negative” (blue) and “positive” (red) values, and it has a symmetric luminance distribution. The Wave color table has been deliberately designed to be strongly nonlinear to support acoustic wave patterns with hotspots (singularities) and radiating point sources while also clearly resolving the far field. This color table is used as a default for many acoustics applications. Oftentimes, it is used together with the Linear symmetric setting in the Scale list for the color table scaling.
People with color vision deficiencies can interpret the Wave color table because it does not use red-green-gray distinctions, making it efficient for 99.98% of the population.
WaveLight () and WaveLightClassic () are similar but use lighter colors.
You can use a combination of Wave color tables to visualize streamlines or contour lines using WaveLight on top of a surface plot using Wave.
Overview of Color Tables and Their Usage
The following collages show related color tables used in the following cases:
The Rainbow Color Tables
The Thermal Color Tables
The Wave, Disco, and Traffic Color Tables
Miscellaneous Color Tables
The superscript 1 denotes color tables with the suffix Classic, which are copies of those used in COMSOL Multiphysics 5.6 and earlier versions.
Custom Color Tables
You can also add your own continuous color tables and discrete color tables as text files with RGB data that you store in the data/colortables/ folder in the directory where COMSOL Multiphysics is installed or in the user settings directory .comsol/v6.0 under your local home directory.
Color Tables and Color Themes in the COMSOL Multiphysics Programming Reference Manual.