Hi all!
I have been trying to define different colors for each part of a concatenated label in my graph. I tried HTML-like labels but could not achieve it. Here follows my graph and the dot file. In my code the colors are generated automatically so I need to assign one color for each line. I have tried concatenating strings with pandas aggregation / join.
The error I get regarding the dot file is: syntax error in line 1 \n… …\n’]
Or: graphviz_cnet: syntax error in line 163 near ‘{’\n"]
The character varies depending on what I try to concatenate.
Yeah, that is what I tried to do based on the documentation. One thing I observed in your code is the double << and >> encapsulating the font attribute to contain all three lines. Maybe that is the reason. Thanks!
It worked! It was exactly this. My code was capable of joining the labels in one with respective colors, but the whole needed to be encapsulated in additional <…> so that Graphviz would consider them as one.