Skip to content

Commit 3626984

Browse files
committed
minor refactor
1 parent c791d52 commit 3626984

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

trees/ShowTree.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ function plottree!(scene, OHT::OrientedHubbardTree,steps = 8,colors = [])
8383
cmplxedge = E[Set([Nodes[ii],Nodes[n]])][2]
8484
realedge = Point.(real.(cmplxedge)/2,imag.(cmplxedge)/2)
8585
if nodecolors[ii] in colorsforinterior
86-
lines!(scene,realedge,color = nodecolors[ii],linewidth = 1,transparency = true,overdraw = true,fxaa = true)
86+
col = nodecolors[ii]
8787
elseif nodecolors[n] in colorsforinterior
88-
lines!(scene,realedge,color = nodecolors[n],linewidth = 1,transparency = true,overdraw = true,fxaa = true)
88+
col = nodecolors[n]
8989
elseif nodecolors[ii] !== "black"
90-
lines!(scene,realedge,color = nodecolors[ii],linewidth = 1,transparency = true,overdraw = true,fxaa = true)
90+
col = nodecolors[ii]
9191
elseif nodecolors[n] !== "black"
92-
lines!(scene,realedge,color = nodecolors[n],linewidth = 1,transparency = true,overdraw = true,fxaa = true)
92+
col = nodecolors[n]
9393
end
94+
lines!(scene,realedge,color = col,linewidth = 1,transparency = true,overdraw = true)
9495
end
9596
end
9697

0 commit comments

Comments
 (0)