export_graphviz#
- export_graphviz(node, graph=None, *, columns_names: list | None = None, class_names: list | None = None, scaler=None, float_precision: int | None = 3, max_depth: int | None = None, node_ids: bool = True, samples: bool = True, filled: bool = True, colors: dict | None = None, wrap: int | None = None, show_media: bool = False)[source]#
The subtree of a node as a Graphviz graph, with the boxes, colors and media of
plot_tree(seeRuleTree.export_graphvizfor the parameters). The media are drawn with matplotlib into PNG files of a temporary directory, which the graph references.- Returns:
graph
- Return type:
graphviz.Digraph