-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Multiple Edge Colors #168
Comments
There's a pretty terrible hack, but if anyone is desperate:
This should work. You can also show random walks over graphs using a DiGraph in your second plot call, e.g. This is a little messy in places, but I think that could be cleaned up by setting curves to |
followup: if you want this specific feature, you might be better off using GraphMakie as of Jul 2022. It seems a little more feature complete here. |
Hi, I'm also interested in setting different colors to edges and to node borders. I found here that at some point it was possible to do it. Setting different edges colors still work with |
I would also make use of this feature. Am using a simple DiGraph to display causal models. The desire is to color code paths as wether they represent a dependency and whether or not they are blocked. The logic is already coded but am stuck not being able to set the color of edges individually. edgecolor argument does not accept vector or dict. |
I may have posted too soon - my apologies. It is possible apply a multi-color scheme to edges. The solution seems to be to supply edgecolor with a dictionary and NOT a vector. The key of the dict is a tuple (s,d) that corresponds the edge designation. There needs to be a key for every edge. The value of the key is the color of that edge. I used Symbol values (i.e. :gray0, :red, :green, etc). This seems to be working. If this is correct, perhaps this info could be added to documentation. |
An option to have multiple edge colors would be awesome. I would like to able to do something like this:
But at the moment you can only input single colors to
edgecolor
. Is there a workaround to do this?The text was updated successfully, but these errors were encountered: