The PyXPlot logo

PyXPlot

Examples - Cubed Function

Next

A colour map of the imaginary part of the cube of (x+iy), with branch cuts clearly visible.

Script

set numerics complex
set sample grid 400x400
set nogrid
set size square
set key below

set c1range[-pi:pi]
set c1format "$%s\pi$"%(c/pi)

plot [-2:2][-2:2] arg((x+i*y)**3) with colourmap

      

Notes

A colour map of the imaginary part of the cube of (x+iy), with branch cuts clearly visible.