toyplot.transform module

Functions for manipulating transformation matrices.

toyplot.transform.rotation(angle)[source]

Return a 2D transformation matrix.

Parameters

angle (number) – Rotation angle in degrees. Positive values produce counterclockwise rotation.