Skip to content

Commit

Permalink
modify highlight path to test data (X)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmori1229 committed Oct 17, 2019
1 parent e664301 commit 01cc13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dtreeviz/trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ def instance_gr():
lcolor = colors['highlight']
lpw = "1.2"
if node.right.id in highlight_path:
lcolor = colors['highlight']
rcolor = colors['highlight']
rpw = "1.2"
edges.append( f'{nname} -> {left_node_name} [penwidth={lpw} color="{lcolor}" label=<{llabel}>]' )
edges.append( f'{nname} -> {right_node_name} [penwidth={rpw} color="{rcolor}" label=<{rlabel}>]' )
Expand Down

0 comments on commit 01cc13f

Please sign in to comment.