TikZ#

class discopy.drawing.backend.TikZ(use_tikzstyles=None)[source]#

Bases: Backend

Tikz drawing backend.

static format_color(color)[source]#

Formats a color.

add_node(i, j, text=None, options=None)[source]#

Add a node to the tikz picture, return its unique id.