# Multicolor Edges Coloring Style/Schemata

**URL:** https://forum.graphviz.org/t/multicolor-edges-coloring-style-schemata/2438
**Category:** Uncategorized
**Created:** [September 12, 2024, 9:17am UTC](https://forum.graphviz.org/t/multicolor-edges-coloring-style-schemata/2438 "2024-09-12T09:17:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wieserfalke](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/wieserfalke/32/1473_2.png) [@wieserfalke](https://forum.graphviz.org/u/wieserfalke)
#### Post date: [September 12, 2024, 9:17am UTC](https://forum.graphviz.org/t/multicolor-edges-coloring-style-schemata/2438/1 "2024-09-12T09:17:34Z")

</div>

Is there a way to change the coloring Style/Schemata for multicolored Edges?

I want to ask if it is possible to draw something on the line of the brown/white one at the top:

 ![88153069-37207c00-cc05-11ea-8eed-9cbeeac80f79](https://global.discourse-cdn.com/graphviz/original/2X/9/9caf3a649124aa8baf0326d16f1f2675691acc16.png)  
or the Green/White, White/Black/Orange and Blue/Black/Yellow ones here:  
 ![87981137-02ada280-cad5-11ea-98b2-f87eed1a046e](https://global.discourse-cdn.com/graphviz/original/2X/7/7220def708bbdeab9424644be5af73b4dc67865e.png)

These were done by stacking Solid, Dashed and Doted line on top of each other, but this sometimes leads to problems.

The Edges normally have a Black other Line `#000000:<inner colors>:#000000` and the other colors inside.

> <https://github.com/wireviz/WireViz/issues/109#issuecomment-2344967878>
>
> Splitting out from #96 as requested:
> 
> I'm looking for a way to produce a bande…d output for two color wires. #96 introduced two colors by showing the second color as stripe along the wire. 
> 
> I think with a banded representation it is easier to distinguish the colors and looks more visually appealing.
> 
> Here is an example (taken from #96):
> 
> !\[image\](https://user-images.githubusercontent.com/7050959/87930061-b425e700-ca87-11ea-937b-656b7236f8f5.png)
> 
> 
> I've just play around with the \`.gv\` files and the dot language.
> 
> Todo:
> 
> \- \[\] Styling the representation in the Wire- Node (should be easy to do)
> \- \[\] Finding a way to make the size of the color bands consistent. In my example every wire has exactly 10 bands (10% of the edge per band) which results in longer bands when the wire gets longer. Maybe using \`style="dashed"\` can be used. But I think it's not as visually appealing as the example above.
> \- \[\] Making sure that the way I got graphviz to draw multiple edges on top of each other is actually working as intended and not just a bug in my version of graphviz \`dot - graphviz version 2.44.0 (0)\` which might be fixed later
> \- \[\] Integration into the WireViz python scripts

---

<div class="post-metadata">

### Author: ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)
#### Post date: [September 12, 2024, 2:52pm UTC](https://forum.graphviz.org/t/multicolor-edges-coloring-style-schemata/2438/2 "2024-09-12T14:52:06Z")

</div>

[Here](https://gitlab.com/graphviz/graphviz/-/issues/1069#note_1364067228) is a link to a possible solution for SVG output.
