neat.CompartmentTree.plotDendrogram

CompartmentTree.plotDendrogram(ax, plotargs={}, labelargs={}, textargs={}, nodelabels={}, bbox=None, y_max=None)[source]

Generate a dendrogram of the NET

Parameters
  • ax (matplotlib.axes) – the axes object in which the plot will be made

  • plotargs (dict (string : value)) – keyword args for the matplotlib plot function, specifies the line properties of the dendrogram

  • labelargs (dict (string : value)) – keyword args for the matplotlib plot function, specifies the marker properties for the node points. Or dict with keys node indices, and with values dicts with keyword args for the matplotlib function that specify the marker properties for specific node points. The entry under key -1 specifies the properties for all nodes not explicitly in the keys.

  • textargs (dict (string : value)) – keyword args for matplotlib textproperties

  • nodelabels (dict (int: string) or None) – labels of the nodes. If None, nodes are named by default according to their location indices. If empty dict, no labels are added.

  • y_max (int, float or None) – specifies the y-scale. If None, the scale is computed from self. By default, y=1 is added for each child of a node, so if y_max is smaller than the depth of the tree, part of it will not be plotted