GraphRecipes.jl
GraphRecipes.jl copied to clipboard
Fail to change edge color from black to any other
If I change color attribute in graphplot from :black to any other I don't see any changes of edge color in my drawing -- it is still black. Any ideas why I am so unlucky?
My code is the modified example:
using Plots, GraphRecipes, Colors
g = [0 1 1;
1 0 1;
1 1 0]
graphplot(g,
x=[0,-1/tan(π/3),1/tan(π/3)], y=[1,0,0],
nodeshape=:circle, nodesize=1.1,
axis_buffer=0.6,
curves=false,
color=:green,
nodecolor=[colorant"#389826",colorant"#CB3C33",colorant"#9558B2"],
linewidth=10)
Hi @goryntsev sorry for the long delay on the response.
Basically, the problem is that when you say color=:green, graphplot does not know whether you are talking about the node color, the edge color or the node stroke color (the color of the little line around the nodes).
If you use edgecolor=:green, then you should get the behavior that you are looking for.