-
-
Notifications
You must be signed in to change notification settings - Fork 660
Description
This ticket rewrites complex_plot
to accept an optional matplotlib-compatible colormap and optional arguments that change the domain coloring to include "contours". I've been using this code in https://github.com/davidlowryduda/phase_mag_plot, and a (slower, older) variant of this code were used in my paper https://arxiv.org/abs/2002.05234.
Typical usage would go like
sage: complex_plot(lambda x: x^2 - x + 2, (-10, 10), (-10, 10), aspect_ratio=1
cmap='viridis')
To include magnitude-based contours, one would write something like
sage: complex_plot(lambda x: x^2 - x + 2, (-10, 10), (-10, 10),
contoured=True)
This also includes the domain coloring tiling patterns from
Wegert and Semmler, Phase plots of complex func-
tions: a journey in illustration (Notices AMS 2010). This would be written like
sage: complex_plot(lambda x: x^2 - x + 2, (-10, 10), (-10, 10),
tiled=True)
Colormaps and contours can be combined or used separately. Without these arguments, the previous complex_plot
functionality continues unchanged.
Component: graphics
Keywords: complex plotting
Author: David Lowry-Duda
Branch/Commit: e1b7ca9
Reviewer: Markus Wageringel, Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/33416