`DomainColoring.checkerplot`

— Function```
checkerplot(
f :: "Complex -> Complex",
limits = (-1, 1, -1, 1);
pixels = (720, 720),
real = false,
imag = false,
rect = false,
angle = false,
abs = false,
polar = false,
box = nothing,
hicontrast = false,
kwargs...
)
```

Takes a complex function and produces a checker plot.

**Arguments**

is the complex function to plot.`f`

are the limits of the rectangle to plot, in the format`limits`

`(minRe, maxRe, minIm, maxIm)`

, if one or two numbers are provided instead they are take symmetric along the real and imaginary axis.

**Keyword Arguments**

is the number of pixels to compute in, respectively, the real and imaginary axis, taking the same for both if only one number is provided.`pixels`

If none of the below options are set, the plot defaults to `rect = true`

.

plots black and white stripes orthogonal to the real axis at a rate of one stripe per unit increase. If set to a number this will be used as width instead.`real`

plots black and white stripes orthogonal to the imaginary axis at a rate of one stripe per unit increase. If set to a number this will be used as width instead.`imag`

is a shortcut for`rect`

`real = true`

and`imag = true`

.plots black and white stripes orthogonal to the phase angle at a rate of eight stripes per full rotation. Can be set to an integer to specify a different rate.`angle`

plots black and white stripes at a rate of one stripe per unit increase of the natural logarithm of the magnitude. If set to a number this is used as the base of the logarithm. When set to a function, unit increases of its output are used instead.`abs`

is a shortcut for`polar`

`angle = true`

and`abs = true`

. Can also be set to the basis to use for`abs`

, then a suitable rate for`angle`

will be selected.if set to`box`

`(a, b, s)`

shades the area where the output is within the box`a`

and`b`

in the color`s`

when set to`(f, s)`

the colored domain is defined by`f(w) == true`

. Can also be a list of multiple boxes.uses black and white instead of the softer defaults.`hicontrast`

Remaining keyword arguments are passed to the plotting backend.

`DomainColoring.checkerplot!`

— Function```
checkerplot(
f :: "Complex -> Complex",
limits = (-1, 1, -1, 1);
pixels = (720, 720),
real = false,
imag = false,
rect = false,
angle = false,
abs = false,
polar = false,
box = nothing,
hicontrast = false,
kwargs...
)
```

Takes a complex function and produces a checker plot.

**Arguments**

is the complex function to plot.`f`

are the limits of the rectangle to plot, in the format`limits`

`(minRe, maxRe, minIm, maxIm)`

, if one or two numbers are provided instead they are take symmetric along the real and imaginary axis.

**Keyword Arguments**

is the number of pixels to compute in, respectively, the real and imaginary axis, taking the same for both if only one number is provided.`pixels`

If none of the below options are set, the plot defaults to `rect = true`

.

plots black and white stripes orthogonal to the real axis at a rate of one stripe per unit increase. If set to a number this will be used as width instead.`real`

plots black and white stripes orthogonal to the imaginary axis at a rate of one stripe per unit increase. If set to a number this will be used as width instead.`imag`

is a shortcut for`rect`

`real = true`

and`imag = true`

.plots black and white stripes orthogonal to the phase angle at a rate of eight stripes per full rotation. Can be set to an integer to specify a different rate.`angle`

plots black and white stripes at a rate of one stripe per unit increase of the natural logarithm of the magnitude. If set to a number this is used as the base of the logarithm. When set to a function, unit increases of its output are used instead.`abs`

is a shortcut for`polar`

`angle = true`

and`abs = true`

. Can also be set to the basis to use for`abs`

, then a suitable rate for`angle`

will be selected.if set to`box`

`(a, b, s)`

shades the area where the output is within the box`a`

and`b`

in the color`s`

when set to`(f, s)`

the colored domain is defined by`f(w) == true`

. Can also be a list of multiple boxes.uses black and white instead of the softer defaults.`hicontrast`

Remaining keyword arguments are passed to the plotting backend.

`DomainColoring.checkerplotshader`

— Method```
DomainColoring.checkerplotshader(
w :: Complex;
real = false,
imag = false,
rect = false,
angle = false,
abs = false,
polar = false,
box = nothing,
hicontrast = false,
)
```

Takes a complex value ** w** and shades it as in a checker plot.

For documentation of the remaining arguments see `checkerplot`

.

`DomainColoring.domaincolor`

— Function```
domaincolor(
f :: "Complex -> Complex",
limits = (-1, 1, -1, 1);
pixels = (720, 720),
abs = false,
grid = false,
color = true,
all = false,
box = nothing,
kwargs...
)
```

Takes a complex function and produces its domain coloring plot.

Red corresponds to phase $0$, yellow to $\frac{\pi}{3}$, green to $\frac{2\pi}{3}$, cyan to $\pi$, blue to $\frac{4\pi}{3}$, and magenta to $\frac{5\pi}{3}$.

**Arguments**

is the complex function to plot.`f`

are the limits of the rectangle to plot, in the format`limits`

`(minRe, maxRe, minIm, maxIm)`

, if one or two numbers are provided instead they are take symmetric along the real and imaginary axis.

**Keyword Arguments**

is the number of pixels to compute in, respectively, the real and imaginary axis, taking the same for both if only one number is provided.`pixels`

toggles the plotting of the natural logarithm of the magnitude as lightness ramps between level curves. If set to a number, this will be used as base of the logarithm instead, if set to`abs`

`Inf`

, zero magnitude will be colored black and poles white. Further granular control can be achieved by passing a named tuple with any of the parameters`base`

,`transform`

, or`sigma`

.`base`

changes the base of the logarithm, as before.`transform`

is the function applied to the magnitude (`m -> log(base, m)`

by default), and`sigma`

changes the rate at which zeros and poles are colored and implies`base = Inf`

.plots points with integer real or imaginary part as black dots. More complicated arguments can be passed as a named tuple in a similar fashion to`grid`

`checkerplot`

.toggles coloring of the phase angle. Can also be set to either the name of, or a`color`

`ColorScheme`

, or a function`θ -> Color`

. If set to`:print`

a desaturated version of the default is used.is a shortcut for`all`

`abs = true`

,`grid = true`

, and`color = true`

.if set to`box`

`(a, b, s)`

shades the area where the output is within the box`a`

and`b`

in the color`s`

when set to`(f, s)`

the colored domain is defined by`f(w) == true`

. Can also be a list of multiple boxes.

Remaining keyword arguments are passed to the plotting backend.

`DomainColoring.domaincolor!`

— Function```
domaincolor(
f :: "Complex -> Complex",
limits = (-1, 1, -1, 1);
pixels = (720, 720),
abs = false,
grid = false,
color = true,
all = false,
box = nothing,
kwargs...
)
```

Takes a complex function and produces its domain coloring plot.

Red corresponds to phase $0$, yellow to $\frac{\pi}{3}$, green to $\frac{2\pi}{3}$, cyan to $\pi$, blue to $\frac{4\pi}{3}$, and magenta to $\frac{5\pi}{3}$.

**Arguments**

is the complex function to plot.`f`

are the limits of the rectangle to plot, in the format`limits`

`(minRe, maxRe, minIm, maxIm)`

, if one or two numbers are provided instead they are take symmetric along the real and imaginary axis.

**Keyword Arguments**

is the number of pixels to compute in, respectively, the real and imaginary axis, taking the same for both if only one number is provided.`pixels`

toggles the plotting of the natural logarithm of the magnitude as lightness ramps between level curves. If set to a number, this will be used as base of the logarithm instead, if set to`abs`

`Inf`

, zero magnitude will be colored black and poles white. Further granular control can be achieved by passing a named tuple with any of the parameters`base`

,`transform`

, or`sigma`

.`base`

changes the base of the logarithm, as before.`transform`

is the function applied to the magnitude (`m -> log(base, m)`

by default), and`sigma`

changes the rate at which zeros and poles are colored and implies`base = Inf`

.plots points with integer real or imaginary part as black dots. More complicated arguments can be passed as a named tuple in a similar fashion to`grid`

`checkerplot`

.toggles coloring of the phase angle. Can also be set to either the name of, or a`color`

`ColorScheme`

, or a function`θ -> Color`

. If set to`:print`

a desaturated version of the default is used.is a shortcut for`all`

`abs = true`

,`grid = true`

, and`color = true`

.if set to`box`

`(a, b, s)`

shades the area where the output is within the box`a`

and`b`

in the color`s`

when set to`(f, s)`

the colored domain is defined by`f(w) == true`

. Can also be a list of multiple boxes.

Remaining keyword arguments are passed to the plotting backend.

`DomainColoring.domaincolorshader`

— Method```
DomainColoring.domaincolorshader(
w :: Complex;
abs = false,
grid = false,
color = true,
all = false,
box = nothing,
)
```

Takes a complex value ** w** and shades it as in a domain coloring.

For documentation of the remaining arguments see `domaincolor`

.

`DomainColoring.labsweep`

— Method`DomainColoring.labsweep(θ)`

Maps a phase angle ** θ** to a color in CIE L*a*b* space by taking

\[\begin{aligned} L^* &= 67 - 12 \cos(3\theta), \\ a^* &= 46 \cos(\theta + .4) - 3, \quad\text{and} \\ b^* &= 46 \sin(\theta + .4) - 16. \end{aligned}\]

See Phase Wheel for more information.

`DomainColoring.pdphaseplot`

— Function```
pdphaseplot(
f :: "Complex -> Complex",
limits = (-1, 1, -1, 1);
pixels = (720, 720),
real = false,
imag = false,
rect = false,
angle = false,
abs = false,
polar = false,
box = nothing,
kwargs...
)
```

Takes a complex valued function and produces a phase plot using ColorCET's CBC1 cyclic color map for protanopic and deuteranopic viewers.

Yellow corresponds to phase $0$, white to $\frac{\pi}{2}$, blue to $\pi$, and black to $\frac{3\pi}{2}$.

**Arguments**

is the complex function to plot.`f`

are the limits of the rectangle to plot, in the format`limits`

`(minRe, maxRe, minIm, maxIm)`

, if one or two numbers are provided instead they are take symmetric along the real and imaginary axis.

**Keyword Arguments**

is the number of pixels to compute in, respectively, the real and imaginary axis, taking the same for both if only one number is provided.`pixels`

plots black to white ramps orthogonal to the real axis at a rate of one ramp per unit increase. If set to a number this will be used as width instead.`real`

plots black to white ramps orthogonal to the imaginary axis at a rate of one ramp per unit increase. If set to a number this will be used as width instead.`imag`

is a shortcut for`rect`

`real = true`

and`imag = true`

.plots black to white ramps orthogonal to the phase angle at a rate of eight ramps per full rotation. Can be set to an integer to specify a different rate.`angle`

plots black to white ramps at a rate of one ramp per unit increase of the natural logarithm of the magnitude. If set to a number this is used as the base of the logarithm. When set to a function, unit increases of its output are used instead.`abs`

is a shortcut for`polar`

`angle = true`

and`abs = true`

. Can also be set to the basis to use for`abs`

, then a suitable rate for`angle`

will be selected.if set to`box`

`(a, b, s)`

shades the area where the output is within the box`a`

and`b`

in the color`s`

when set to`(f, s)`

the colored domain is defined by`f(w) == true`

. Can also be a list of multiple boxes.

Remaining keyword arguments are passed to the plotting backend.

`DomainColoring.pdphaseplot!`

— Function```
pdphaseplot(
f :: "Complex -> Complex",
limits = (-1, 1, -1, 1);
pixels = (720, 720),
real = false,
imag = false,
rect = false,
angle = false,
abs = false,
polar = false,
box = nothing,
kwargs...
)
```

Takes a complex valued function and produces a phase plot using ColorCET's CBC1 cyclic color map for protanopic and deuteranopic viewers.

Yellow corresponds to phase $0$, white to $\frac{\pi}{2}$, blue to $\pi$, and black to $\frac{3\pi}{2}$.

**Arguments**

is the complex function to plot.`f`

are the limits of the rectangle to plot, in the format`limits`

`(minRe, maxRe, minIm, maxIm)`

, if one or two numbers are provided instead they are take symmetric along the real and imaginary axis.

**Keyword Arguments**

is the number of pixels to compute in, respectively, the real and imaginary axis, taking the same for both if only one number is provided.`pixels`

plots black to white ramps orthogonal to the real axis at a rate of one ramp per unit increase. If set to a number this will be used as width instead.`real`

plots black to white ramps orthogonal to the imaginary axis at a rate of one ramp per unit increase. If set to a number this will be used as width instead.`imag`

is a shortcut for`rect`

`real = true`

and`imag = true`

.plots black to white ramps orthogonal to the phase angle at a rate of eight ramps per full rotation. Can be set to an integer to specify a different rate.`angle`

plots black to white ramps at a rate of one ramp per unit increase of the natural logarithm of the magnitude. If set to a number this is used as the base of the logarithm. When set to a function, unit increases of its output are used instead.`abs`

is a shortcut for`polar`

`angle = true`

and`abs = true`

. Can also be set to the basis to use for`abs`

, then a suitable rate for`angle`

will be selected.if set to`box`

`(a, b, s)`

shades the area where the output is within the box`a`

and`b`

in the color`s`

when set to`(f, s)`

the colored domain is defined by`f(w) == true`

. Can also be a list of multiple boxes.

Remaining keyword arguments are passed to the plotting backend.

`DomainColoring.renderimage`

— Function```
DomainColoring.renderimage(
f :: "Complex -> Complex",
shader :: "Complex -> Color",
limits = (-1, 1, -1, 1),
pixels = (720, 720),
)
```

**Arguments**

is the complex function to turn into an image.`f`

is the shader function to compute a pixel.`shader`

are the limits of the rectangle to render, in the format`limits`

`(minRe, maxRe, minIm, maxIm)`

, if one or two numbers are provided instead they are take symmetric along the real and imaginary axis.is the size of the output in pixels, respectively, the number of pixels along the real and imaginary axis, taking the same for both if only one number is provided.`pixels`

`DomainColoring.renderimage!`

— Method```
DomainColoring.renderimage!(
out :: Matrix{<: Color},
f :: "Complex -> Complex",
shader :: "Complex -> Color",
limits = (-1, 1, -1, 1),
)
```

**Arguments**

is the output image buffer.`out`

is the complex function to turn into an image.`f`

is the shader function to compute a pixel.`shader`

are the limits of the rectangle to render, in the format`limits`

`(minRe, maxRe, minIm, maxIm)`

, if one or two numbers are provided instead they are take symmetric along the real and imaginary axis.

`DomainColoring.sawplot`

— Function```
sawplot(
f :: "Complex -> Complex",
limits = (-1, 1, -1, 1);
pixels = (720, 720),
real = false,
imag = false,
rect = false,
angle = false,
abs = false,
polar = false,
color = false,
box = nothing,
kwargs...
)
```

Takes a complex function and produces a saw plot.

**Arguments**

is the complex function to plot.`f`

are the limits of the rectangle to plot, in the format`limits`

`(minRe, maxRe, minIm, maxIm)`

, if one or two numbers are provided instead they are take symmetric along the real and imaginary axis.

**Keyword Arguments**

is the number of pixels to compute in, respectively, the real and imaginary axis, taking the same for both if only one number is provided.`pixels`

If none of the below options are set, the plot defaults to `rect = true`

.

plots black to white ramps orthogonal to the real axis at a rate of one ramp per unit increase. If set to a number this will be used as width instead.`real`

plots black to white ramps orthogonal to the imaginary axis at a rate of one ramp per unit increase. If set to a number this will be used as width instead.`imag`

is a shortcut for`rect`

`real = true`

and`imag = true`

.plots black to white ramps orthogonal to the phase angle at a rate of eight ramps per full rotation. Can be set to an integer to specify a different rate.`angle`

plots black to white ramps at a rate of one ramp per unit increase of the natural logarithm of the magnitude. If set to a number this is used as the base of the logarithm. When set to a function, unit increases of its output are used instead.`abs`

is a shortcut for`polar`

`angle = true`

and`abs = true`

. Can also be set to the basis to use for`abs`

, then a suitable rate for`angle`

will be selected.toggles coloring of the phase angle. Can also be set to either the name of, or a`color`

`ColorScheme`

, or a function`θ -> Color`

. If set to`:print`

a desaturated version of the default is used.if set to`box`

`(a, b, s)`

shades the area where the output is within the box`a`

and`b`

in the color`s`

when set to`(f, s)`

the colored domain is defined by`f(w) == true`

. Can also be a list of multiple boxes.

Remaining keyword arguments are passed to the plotting backend.

`DomainColoring.sawplot!`

— Function```
sawplot(
f :: "Complex -> Complex",
limits = (-1, 1, -1, 1);
pixels = (720, 720),
real = false,
imag = false,
rect = false,
angle = false,
abs = false,
polar = false,
color = false,
box = nothing,
kwargs...
)
```

Takes a complex function and produces a saw plot.

**Arguments**

is the complex function to plot.`f`

are the limits of the rectangle to plot, in the format`limits`

`(minRe, maxRe, minIm, maxIm)`

, if one or two numbers are provided instead they are take symmetric along the real and imaginary axis.

**Keyword Arguments**

is the number of pixels to compute in, respectively, the real and imaginary axis, taking the same for both if only one number is provided.`pixels`

If none of the below options are set, the plot defaults to `rect = true`

.

plots black to white ramps orthogonal to the real axis at a rate of one ramp per unit increase. If set to a number this will be used as width instead.`real`

plots black to white ramps orthogonal to the imaginary axis at a rate of one ramp per unit increase. If set to a number this will be used as width instead.`imag`

is a shortcut for`rect`

`real = true`

and`imag = true`

.plots black to white ramps orthogonal to the phase angle at a rate of eight ramps per full rotation. Can be set to an integer to specify a different rate.`angle`

plots black to white ramps at a rate of one ramp per unit increase of the natural logarithm of the magnitude. If set to a number this is used as the base of the logarithm. When set to a function, unit increases of its output are used instead.`abs`

is a shortcut for`polar`

`angle = true`

and`abs = true`

. Can also be set to the basis to use for`abs`

, then a suitable rate for`angle`

will be selected.toggles coloring of the phase angle. Can also be set to either the name of, or a`color`

`ColorScheme`

, or a function`θ -> Color`

. If set to`:print`

a desaturated version of the default is used.if set to`box`

`(a, b, s)`

shades the area where the output is within the box`a`

and`b`

in the color`s`

when set to`(f, s)`

the colored domain is defined by`f(w) == true`

. Can also be a list of multiple boxes.

Remaining keyword arguments are passed to the plotting backend.

`DomainColoring.sawplotshader`

— Method```
DomainColoring.sawplotshader(
w :: Complex;
real = false,
imag = false,
rect = false,
angle = false,
abs = false,
polar = false,
color = false,
box = nothing,
)
```

Takes a complex value ** w** and shades it as in a saw plot.

For documentation of the remaining arguments see `sawplot`

.

`DomainColoring.shadedplot`

— Function```
DomainColoring.shadedplot(
f :: "Complex -> Complex",
shader :: "Complex -> Color",
limits = (-1, 1, -1, 1),
pixels = (720, 720);
kwargs...
)
```

Takes a complex function ** f** and a

**and produces a plot.**

`shader`

For documentation of the remaining arguments see `renderimage`

.

Keyword arguments are passed to the backend.

`DomainColoring.shadedplot!`

— Function```
DomainColoring.shadedplot(
f :: "Complex -> Complex",
shader :: "Complex -> Color",
limits = (-1, 1, -1, 1),
pixels = (720, 720);
kwargs...
)
```

Takes a complex function ** f** and a

**and produces a plot.**

`shader`

For documentation of the remaining arguments see `renderimage`

.

Keyword arguments are passed to the backend.

`DomainColoring.tphaseplot`

— Function```
tphaseplot(
f :: "Complex -> Complex",
limits = (-1, 1, -1, 1);
pixels = (720, 720),
real = false,
imag = false,
rect = false,
angle = false,
abs = false,
polar = false,
box = nothing,
kwargs...
)
```

Takes a complex valued function and produces a phase plot using ColorCET's CBTC1 cyclic color map for titranopic viewers.

Red corresponds to phase $0$, white to $\frac{\pi}{2}$, cyan to $\pi$, and black to $\frac{3\pi}{2}$.

**Arguments**

is the complex function to plot.`f`

are the limits of the rectangle to plot, in the format`limits`

`(minRe, maxRe, minIm, maxIm)`

, if one or two numbers are provided instead they are take symmetric along the real and imaginary axis.

**Keyword Arguments**

is the number of pixels to compute in, respectively, the real and imaginary axis, taking the same for both if only one number is provided.`pixels`

plots black to white ramps orthogonal to the real axis at a rate of one ramp per unit increase. If set to a number this will be used as width instead.`real`

plots black to white ramps orthogonal to the imaginary axis at a rate of one ramp per unit increase. If set to a number this will be used as width instead.`imag`

is a shortcut for`rect`

`real = true`

and`imag = true`

.plots black to white ramps orthogonal to the phase angle at a rate of eight ramps per full rotation. Can be set to an integer to specify a different rate.`angle`

plots black to white ramps at a rate of one ramp per unit increase of the natural logarithm of the magnitude. If set to a number this is used as the base of the logarithm. When set to a function, unit increases of its output are used instead.`abs`

is a shortcut for`polar`

`angle = true`

and`abs = true`

. Can also be set to the basis to use for`abs`

, then a suitable rate for`angle`

will be selected.if set to`box`

`(a, b, s)`

shades the area where the output is within the box`a`

and`b`

in the color`s`

when set to`(f, s)`

the colored domain is defined by`f(w) == true`

. Can also be a list of multiple boxes.

Remaining keyword arguments are passed to the plotting backend.

`DomainColoring.tphaseplot!`

— Function```
tphaseplot(
f :: "Complex -> Complex",
limits = (-1, 1, -1, 1);
pixels = (720, 720),
real = false,
imag = false,
rect = false,
angle = false,
abs = false,
polar = false,
box = nothing,
kwargs...
)
```

Takes a complex valued function and produces a phase plot using ColorCET's CBTC1 cyclic color map for titranopic viewers.

Red corresponds to phase $0$, white to $\frac{\pi}{2}$, cyan to $\pi$, and black to $\frac{3\pi}{2}$.

**Arguments**

is the complex function to plot.`f`

are the limits of the rectangle to plot, in the format`limits`

`(minRe, maxRe, minIm, maxIm)`

, if one or two numbers are provided instead they are take symmetric along the real and imaginary axis.

**Keyword Arguments**

is the number of pixels to compute in, respectively, the real and imaginary axis, taking the same for both if only one number is provided.`pixels`

plots black to white ramps orthogonal to the real axis at a rate of one ramp per unit increase. If set to a number this will be used as width instead.`real`

plots black to white ramps orthogonal to the imaginary axis at a rate of one ramp per unit increase. If set to a number this will be used as width instead.`imag`

is a shortcut for`rect`

`real = true`

and`imag = true`

.plots black to white ramps orthogonal to the phase angle at a rate of eight ramps per full rotation. Can be set to an integer to specify a different rate.`angle`

plots black to white ramps at a rate of one ramp per unit increase of the natural logarithm of the magnitude. If set to a number this is used as the base of the logarithm. When set to a function, unit increases of its output are used instead.`abs`

is a shortcut for`polar`

`angle = true`

and`abs = true`

. Can also be set to the basis to use for`abs`

, then a suitable rate for`angle`

will be selected.if set to`box`

`(a, b, s)`

shades the area where the output is within the box`a`

and`b`

in the color`s`

when set to`(f, s)`

the colored domain is defined by`f(w) == true`

. Can also be a list of multiple boxes.

Remaining keyword arguments are passed to the plotting backend.

`DomainColoring.@shadedplot`

— Macro`DomainColoring.@shadedplot(basename, shaderkwargs, shader)`

Macro emitting implementations of ** basename** and

**in a similar fashion to the other plotting routines in this library, see for instance**

`basename!`

`domaincolor`

and `domaincolor!`

.** shaderkwargs** is a named tuple setting keyword arguments used in the expression

**. The result of**

`shader`

**should be a function**

`shader`

`Complex -> Color`

and is used to shade the resulting plot.See the source for examples.