Plotting complex valued functions

Hi,

I've written two plot scripts for plotting functions f: R -> C.
(Scalar mappings of a real to a complex domain.)

The function plotcf(...) plots the modulus
as y value and the phase as color code.

The function stemcf(...) does the same, but
emulates a stem plot.

I attached also two demo scripts that show these
functions in action.

If you have any questions or improvements,
please tell me.

Feel free to add these scripts to the gallery
if you think they could be of a broader
interest.

-- Raoul

plotcf.py (1.69 KB)

stemcf.py (2.15 KB)

TestPlotCF.py (492 Bytes)

TestStemCF.py (502 Bytes)