Module genpygoodies.complex

Complex number related functionality

Functions

def draw_complex_plane(ctx, f, low, high, width, height, startx=None, starty=None, elements=200, steps=[-2, -1, 0, 1, 2], divisions=(1, 1), colormap=None)

Plot a real function of a complex variable on and argand diagram, as a colour map. The plot also includes a key.

Args

ctx: f: low: high: width: height: startx: starty: elements: steps: divisions: colormap:

def draw_overlay(ctx, pixel_width, pixel_height, frame_no, frame_count)

Drawing function to create an overlay to add "real" and "imaginary" text to a 3D plot.

This can be used to annotate a plot created with povray to show z against a complex x-y plane.

Args

ctx: pixel_width: pixel_height: frame_no: frame_count: Returns:

def i_formater(value, div)
def style_argand_transparent(axes)