Skip to content

Commit

Permalink
Merge pull request #62 from kento-forest/fix_highlight_path
Browse files Browse the repository at this point in the history
fix : the right arrows in path to test data are not highlighted
  • Loading branch information
parrt authored Oct 20, 2019
2 parents 8aefb41 + 01cc13f commit c95a160
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 c95a160

Please sign in to comment.