Drawing/Plotting Tools

This module defines utility functions for drawing.

class Arrow3D(xs, ys, zs, *args, **kwargs)[source]

This function is implemented by tacaswell on stackoverflow: https://stackoverflow.com/a/29188796.

class IndexFormatter(labels)[source]

Function taken from Matplotlib version 3.3.1 as soon to be deprecated.

Format the position x to the nearest i-th label where i = int(x + 0.5). Positions where i < 0 or i > len(list) have no tick labels.

Parameters:labels – List of labels.

type labels: list

drawTree(tree, label_func=<type 'str'>, show_confidence=False, orientation='horizontal', inverted=False, branch_labels=None, label_colors=None, *args, **kwargs)[source]

Plot the given tree using matplotlib. This function is adapted from draw() for more versatile usages.