Open main menu
Domain coloring plot of the function f(x) = (x2 − 1)(x − 2 − i)2/x2 + 2 + 2i, using the structured color function described below.

In complex analysis, domain coloring or a color wheel graph is a technique for visualizing complex functions by assigning a color to each point of the complex plane. By assigning points on the complex plane to different colors and brightness, domain coloring allows for a four dimensional complex function to be easily represented and understood. This provides insight to the fluidity of complex functions and shows natural geometric extensions of real functions.

MotivationEdit

A graph of a real function can be drawn in two dimensions because there are two represented variables,   and  . However, complex numbers are represented by two variables and therefore two dimensions; this means that representing a complex function (more precisely, a complex-valued function of one complex variable  ) requires the visualization of four dimensions. One way to achieve that is with a Riemann surface, but another method is by domain coloring.

MethodEdit

HL plot of z, as per the simple color function example described in the text (left), and the graph of the complex function z3 − 1 (right) using the same color function, showing the three zeros as well as the negative real numbers as cyan rays starting at the zeros.

Representing a four dimensional complex mapping with only two variables is undesirable, as methods like projections can result in a loss of information. However, it is possible to add variables that keep the four dimensional process without requiring a visualization of four dimensions. In this case, the two added variables are visual inputs such as color and brightness because they are naturally two variables easily processed and distinguished by the human eye. This assignment is called a "color function". There are many different color functions used. A common practice is to represent the complex argument (also known as "phase" or "angle") with a hue following the color wheel, and the magnitude by other means, such as brightness or saturation.

Simple color functionEdit

The following example colors the origin in black, 1 in red, −1 in cyan, and a point at infinity in white:

 

where  .

More precisely, it uses the HLS (hue, lightness, saturation) color model. Saturation is always set at the maximum of 100%. Vivid colors of the rainbow are rotating in a continuous way on the complex unit circle, so the sixth roots of unity (starting with 1) are: red, yellow, green, cyan, blue, and magenta. Magnitude is coded by intensity via a strictly monotonic continuous function.

Since the HSL color space is not perceptually uniform, one can see streaks of perceived brightness at yellow, cyan, and magenta (even though their absolute values are the same as red, green, and blue) and a halo around L = 1/2. Use of the Lab color space corrects this, making the images more accurate, but also makes them more drab/pastel.

Discontinuous color changingEdit

Many color graphs have discontinuities, where instead of evenly changing brightness and color, it suddenly changes, even when the function itself is still smooth. This is done for a variety of reasons such as showing more detail or highlighting certain aspects of a function.

Magnitude growthEdit

 
A discontinuous color function. In the graph, each discontinuity occurs when   for integers n.

Unlike the finite range of the argument, the magnitude of a complex number can range from 0 to . Therefore, in functions that have large ranges of magnitude, changes in magnitude can sometimes be hard to differentiate when a very large change is also pictured in the graph. This can be remedied with a discontinuous color function which shows a repeating brightness pattern for the magnitude based on a given equation. This allows smaller changes to be easily seen as well as larger changes that "discontinuously jump" to a higher magnitude. In the graph on the right, these discontinuities occur in circles around the center, and show a dimming of the graph that can then start becoming brighter again. A similar color function has been used for the graph on top of the article.

Equations that determine the discontinuities may be linear, such as for every integer magnitude, exponential equations such as every magnitude n where   is an integer, or any other equation.

Highlighting propertiesEdit

Discontinuities may be placed where outputs have a certain property to highlight which parts of the graph have that property. For instance, a graph may instead of showing the color cyan jump from green to blue. This causes a discontinuity that is easy to spot, and can highlight lines such as where the argument is zero.[1] Discontinuities may also affect large portions of a graph, such as a graph where the color wheel divides the graph into quadrants. In this way, it is easy to show where each quadrant ends up with relations to others.[2]

HistoryEdit

The method was probably first used in publication in the late 1980s by Larry Crone and Hans Lundmark.[3]

The term "domain coloring" was coined by Frank Farris, possibly around 1998.[4][5] There were many earlier uses of color to visualize complex functions, typically mapping argument (phase) to hue.[6] The technique of using continuous color to map points from domain to codomain or image plane was used in 1999 by George Abdo and Paul Godfrey[7] and colored grids were used in graphics by Doug Arnold that he dates to 1997.[8]

LimitationsEdit

People who suffer color blindness may have trouble interpreting such graphs.

ReferencesEdit

  1. ^ May 2004. http://users.mai.liu.se/hanlu09/complex/domain_coloring.html Retrieved 13 December 2018.
  2. ^ Poelke, Konstantin and Polthier, Konrad. https://pdfs.semanticscholar.org/1b31/16583a2638f896d8e1dd5813cd97b3c7e2bd.pdf Retrieved 13 December 2018.
  3. ^ Elias Wegert (2012). Visual Complex Functions: An Introduction with Phase Portraits. Springer Basel. p. 29. ISBN 9783034801799. Retrieved 6 January 2016.
  4. ^ Frank A. Farris, Visualizing complex-valued functions in the plane
  5. ^ Hans Lundmark (2004). "Visualizing complex analytic functions using domain coloring". Archived from the original on 2006-05-02. Retrieved 2006-05-25. Cite uses deprecated parameter |deadurl= (help) Ludmark refers to Farris' coining the term "domain coloring" in this 2004 article.
  6. ^ David A. Rabenhorst (1990). "A Color Gallery of Complex Functions". Pixel: The Magazine of Scientific Visualization. Pixel Communications. 1 (4): 42 et seq.
  7. ^ George Abdo & Paul Godfrey (1999). "Plotting functions of a complex variable: Table of Conformal Mappings Using Continuous Coloring". Retrieved 2008-05-17.
  8. ^ Douglas N. Arnold (2008). "Graphics for complex analysis". Retrieved 2008-05-17.

External linksEdit