Context.translate

void translate(double tx, double ty)

Modifies the current transformation matrix (CTM) by translating the user-space origin by (tx, ty). This offset is interpreted as a user-space coordinate according to the CTM in place before the new call to [cairo.context.Context.translate]. In other words, the translation of the user-space origin takes place after any existing transformation.

Parameters

txamount to translate in the X direction
tyamount to translate in the Y direction