Skip to content

ComplexPlot ​

Wolfram's own ComplexPlot, held inert -- the expression is what a worksheet or REPL draws, not something this library computes (see @enumeratio/formats/src/graphics.ts).

Wolfram LanguageComplexPlot
ComplexPlot(...)Wolfram's own ComplexPlot, held inert -- the expression is what a worksheet or REPL draws, not something this library computes (see @enumeratio/formats/src/graphics.ts).
Typed signatures
TypePackageApplies
(any*) -> anyformatsalways

Domain: Graphics·Drawn as ComplexPlot

Details

Lowers to a GraphicsBox holding a RasterBox with Producer -> ComplexPlot: color is the argument on a gradient (phase, the hue wheel, unless ColorFunction says otherwise), brightness a compressed log-magnitude, poles white and zeros black. Extent is the window's height, Center its middle, Mask a radius outside which the plane is dimmed.

On the web a WebGPU shader fills the raster, one invocation per pixel, so a drag or a Manipulate slider redraws at frame rate. Everywhere else (Node, a build) the cells are evaluated on the CPU by the same coloring.

Examples

Basic #

An essential singularity, colored by phase

live ↗
InComplexPlot(exp⁡(1z),(Extent,1.2),(Height,380))\mathrm{ComplexPlot}(\exp(\frac{1}{z}), (\mathrm{Extent},1.2), (\mathrm{Height},380))OutComplexPlot(exp⁡(1z),(Extent,1.2),(Height,380))\mathrm{ComplexPlot}(\exp(\frac{1}{z}), (\mathrm{Extent},1.2), (\mathrm{Height},380))
Options #

Three zeros and two poles, in a window four units high

live ↗
InComplexPlot(z3−1z2+1,(Extent,4))\mathrm{ComplexPlot}(\frac{z^3-1}{z^2+1}, (\mathrm{Extent},4))OutComplexPlot(z3−1z2+1,(Extent,4))\mathrm{ComplexPlot}(\frac{z^3-1}{z^2+1}, (\mathrm{Extent},4))
About
Examples2
CrosswalkWolfram Language