ivy.ascii module

class ivy.ascii.AsciiBuffer(width, height)[source]
putstr(r, c, s)[source]
ivy.ascii.render(root, unitlen=3, minwidth=50, maxwidth=None, scaled=False, show_internal_labels=True)[source]

Create an ascii tree to be shown with print()

ivy.ascii.scale_cpos(node, n2c, scalef, root_offset)[source]
ivy.ascii.set_rpos(node, n2c)[source]
ivy.ascii.smooth_cpos(node, n2c)[source]
ivy.ascii.sum_to_root(node, internodes=True, length=False)[source]

Number of branches from node to root.

Parameters:
  • node (Node) – A Node object
  • RR – Do internodes and length do anything in this function? -CZ
Returns:

The number of branches from node to root.

Return type:

int