Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to change edge color from black to any other #140

Open
goryntsev opened this issue Nov 27, 2020 · 1 comment
Open

Fail to change edge color from black to any other #140

goryntsev opened this issue Nov 27, 2020 · 1 comment

Comments

@goryntsev
Copy link

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)
@JackDevine
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants