Complexplorer
Complexplorer renders domain colorings and enhanced phase portraits, lifts them onto the Riemann sphere as relief maps (modulus-scaled spheres), and can export the results as STL files — so a complex function can end up as a 3D-printed object on your desk.

Highlights:
- Domain coloring and phase portraits with auto-scaling, domain composition, and a range of modulus scaling modes.
- Riemann relief maps — modulus-scaled Riemann-sphere visualizations of a function’s global behavior.
- 3D printing pipeline — direct STL export turns visualizations into physical mathematical ornaments.
- Perceptually optimized colormap families designed for reading phase and modulus accurately.
- PyVista-accelerated rendering for interactive 3D exploration.
Gallery
The same idea read four ways — from a flat phase portrait, to modulus contours, to the function lifted onto the Riemann sphere, to a physical object on a desk.
The magic of complex numbers
The library takes its spirit from a passage that argues complex numbers are not a convenient fiction but something woven into nature itself:
We cannot directly see the minute details of a Dedekind cut, nor is it clear that arbitrarily great or arbitrarily tiny times or lengths actually exist in nature. One could say that the so-called ‘real numbers’ are as much a product of mathematicians’ imaginations as are the complex numbers. Yet we shall find that complex numbers, as much as reals, and perhaps even more, find a unity with nature that is truly remarkable. It is as though Nature herself is as impressed by the scope and consistency of the complex-number system as we are ourselves, and has entrusted to these numbers the precise operations of her world at its minutest scales. …
Moreover, to refer just to the scope and to the consistency of complex numbers does not do justice to this system. There is something more which, in my view, can only be referred to as ‘magic’.
— Sir Roger Penrose, The Road to Reality, Ch. 4: “Magical Complex Numbers”