Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graphviz: How to change border color

Given a node like so, on a white background

"test" [
    style="filled,dashed"
    shape=box
    color=lightgray
    label="Hello World"
];

How do I make the dashed border black?

like image 694
puk Avatar asked Feb 02 '12 01:02

puk


2 Answers

I found a solution that works in my case.

"test" [
    style="filled,dashed"
    shape=box
    color=black
    fillcolor=lightgray
    label="Hello World"
];

It was misleading because if fillcolor is not specified, it appears it will default to color.

like image 178
puk Avatar answered Oct 21 '22 13:10

puk


So You can actually get this with one less line:

"test" [
    style="filled,dashed"
    shape=box
    fillcolor=lightgray
    label="Hello World"
];

In my testing at least including a fillcolor with no color defaults to black border.

like image 6
Gus Avatar answered Oct 21 '22 13:10

Gus