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

Add Vertex boundary color (or, how to encode multiple style fields in CSV) #24

Open
milo-trujillo opened this issue May 13, 2024 · 0 comments

Comments

@milo-trujillo
Copy link

Hello! I am trying to set the outer color and fill color of a vertex separately - for example, setting the outline to light grey and the fill color to light blue to de-emphasize some vertices in an illustration.

The color Vertex attribute controls the fill color, but not the outline color, which remains black. Instead, it looks like I need to set the tikz style, like:

\Vertex[style={color=black!20,fill=blue!20}]{A}

This works for an individual vertex, but I cannot figure out how to add the same rules to a CSV. I've tried a few variations on:

id, x, y, label, style
v0, 0.238, 3.926, v0, black!20,fill=blue!20

Presumably this doesn't work because we can't have a comma in the CSV value. Escaping the comma, either with backslashes, {black!20,fill=blue!20}, or "{black!20,fill=blue!20}", has not worked. Breaking the single style field into two style fields hasn't worked, either. I've tried using space-separated .dat files instead of CSV, but have been unable to get \Vertices to read them.

Is there a way to accomplish what I'm trying to do? Or, ideally, would it be possible to add some kind of outlineColor attribute to tikz-network vertices to make this process much simpler? Thanks!

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

1 participant