py-domaincolor Documentation
py-domaincolor is a Python package for visualizing complex-valued functions using domain coloring, where the color of each point represents the value of the function at that point.
Features
Human-friendly parser for mathematical expressions (e.g.,
z^2,sin(z)/z,e^z)Multiple visualization modes: standard, phase-only, and modulus-only
Contour lines for modulus and argument
Special functions support: gamma, zeta, and more
High-resolution output with customizable themes
CLI tool for quick plotting from the command line
Quick Start
from py_domaincolor import plot
# Generate a domain coloring plot
plot("z^2")
# Or use the command-line interface
plot-complex "sin(z)/z" --range -5 5 --contours