ytree.visualization.tree_plot.TreePlot.save

TreePlot.save(filename=None)[source]

Save the merger tree plot.

Parameters:filename (optional, str) – The output filename. If none given, the uid of the head node is used. Default: None.

Examples

>>> import ytree
>>> a = ytree.load("tree_0_0_0.dat")
>>> p = ytree.TreePlot(a[0])
>>> p.save('tree.png')