Skip to content

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

Open
@milo-trujillo

Description

@milo-trujillo

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions