jason
jason

Reputation: 4449

Shade Graphviz object with patterns

I didn't see any documentation for shading patterns, only solid fill color for Graphviz. Does anybody know how to do it, or is it not possible?

Like the pattern fill here. https://www.ablebits.com/office-addins-blog/2012/03/28/excel-charts-tips/

Upvotes: 2

Views: 948

Answers (1)

tk421
tk421

Reputation: 5957

The closest thing to what you want is probably gradients.

In Graphviz's Node, Edge and Graph Attributes page, it supports gradients when specifying color lists.

enter image description here

You can use them referring to these examples.

Another alternative which would be a bigger hassle is use the shapefile attribute and build a shapefile per pattern although this feature is deprecated.

A third option would be if you are outputting in SVG format, is to do some post processing on the generated SVG to apply texture patterns on the nodes.

Upvotes: 1

Related Questions