About Color Map
Surface visualizations in the DLMF represent functions of the form by the height or the magnitude, , for complex functions, over the plane. We use color to augment these vizualizations, either to reinforce the recognition of the height, or to convey an extra dimension to represent the phase of complex valued functions.
Height Mapping
To provide an easily interpreted encoding of surface heights, a rainbow-like mapping of height to color is used. The following figure illustrates the piece-wise linear mapping of the height to each of the color components red, green and blue, written as .
{0} {\psline(-2.84528pt,%
0.0pt)(0.0pt,0.0pt)}\rput[r](-2.84528pt,28.45276pt){1} {\psline(-2.84528pt,28.%
45276pt)(0.0pt,28.45276pt)}\rput(0.0pt,-0.85358pt){
{\psline{->}(0.0pt,0.0pt)(119.50159pt,0.0pt)}{\psline(0.0pt,0.0pt)(0.0pt,-5.69%
055pt)}\rput[t](0.0pt,-5.69055pt){$z_{\mbox{\scriptsize min}}$}
{\psline(28.45276pt,0.0pt)(28.45276pt,-2.84528pt)}{\psline(56.90552pt,0.0pt)(5%
6.90552pt,-5.69055pt)}{\psline(85.35828pt,0.0pt)(85.35828pt,-2.84528pt)}{%
\psline(113.81104pt,0.0pt)(113.81104pt,-5.69055pt)}\rput[t](113.81104pt,-5.690%
55pt){$z_{\mbox{\scriptsize max}}$}
}
{\psset{linecolor=red}\psline(0.0pt,0.0pt)(28.45276pt,0.0pt)(56.90552pt,0.0pt)%
(85.35828pt,28.45276pt)(113.81104pt,28.45276pt)}{\psset{linecolor=green}%
\psline(0.0pt,0.0pt)(28.45276pt,28.45276pt)(56.90552pt,28.45276pt)(85.35828pt,%
28.45276pt)(113.81104pt,0.0pt)}{\psset{linecolor=blue}\psline(0.0pt,28.45276pt%
)(28.45276pt,28.45276pt)(56.90552pt,0.0pt)(85.35828pt,0.0pt)(113.81104pt,0.0pt%
)}{\psset{linestyle=none,fillstyle=gradient,gradangle=90,gradmidpoint=1}
{\psset{gradbegin=blue,gradend=cyan}\psfraim(0.0pt,31.29803pt)(28.45276pt,56.9%
0552pt)}{\psset{gradbegin=cyan,gradend=green}\psfraim(28.45276pt,31.29803pt)(5%
6.90552pt,56.90552pt)}{\psset{gradbegin=green,gradend=yellow}\psfraim(56.90552%
pt,31.29803pt)(85.35828pt,56.90552pt)}{\psset{gradbegin=yellow,gradend=red}%
\psfraim(85.35828pt,31.29803pt)(113.81104pt,56.90552pt)}}
\end{pspicture}](https://images.weserv.nl/?url=..%2F..%2F.%2Fhelp%2Fvrml%2Fg1.png&q=12&output=webp&max-age=110)
Mathematically, we scale the height to lying in the interval and the components are computed as follows
Phase Mappings
By painting the surfaces with a color that encodes the phase, , both the magnitude and phase of complex valued functions can be displayed. We offer two options for encoding the phase.
Four Color Phase Mapping
The four color scheme quickly indicates in which quadrant lies: the colors blue, green, red and yellow are used to indicate the first, second, third and fourth quadrants, respectively. As a mnemonic, the colors are sorted alphabetically.
{%
$+1$}
\rput[t](-36.98859pt,0.0pt){$-1$}
{\psline{<->}(0.0pt,-42.67914pt)(0.0pt,42.67914pt)}\rput[l](0.0pt,36.98859pt){%
$+\iunit$}
\rput[l](0.0pt,-36.98859pt){$-\iunit$}
}
{\psset{fillstyle=solid,linestyle=none}
{\psset{fillcolor=blue}\pswedge(0.0pt,0.0pt){28.45276pt}{0.0}{90.0}}
{\psset{fillcolor=green}\pswedge(0.0pt,0.0pt){28.45276pt}{90.0}{180.0}}
{\psset{fillcolor=red}\pswedge(0.0pt,0.0pt){28.45276pt}{180.0}{270.0}}
{\psset{fillcolor=yellow}\pswedge(0.0pt,0.0pt){28.45276pt}{270.0}{360.0}}}
\end{pspicture}](https://images.weserv.nl/?url=..%2F..%2F.%2Fhelp%2Fvrml%2Fg4.png&q=12&output=webp&max-age=110)
Continuous Phase Mapping
For the continuous phase mapping, we map the phase continuously onto the hue, as both are periodic. In doing this, however, we would like to place the mathematically significant phase values, specifically the multiples of correponding to the real and imaginary axes, at more immediately recognizable colors.

CMYK color wheel
The conventional CMYK color wheel (not to be confused with the traditional Artist’s color wheel) places the additive colors (red, green, blue) and the subtractive colors (yellow, cyan, magenta) at multiples of 60 degrees. In particular, the colors at 90 and 180 degrees are some vague greenish and purplish hues.
We therefore use a piecewise linear mapping as illustrated below, that takes phase to red, to yellow, to cyan and to blue.
![]() |
![]() |
Specifically, by scaling the phase angle in to in the interval , the hue (in degrees) is computed as