orientation - Graphviz: label on the left side -


in case use following graphviz code, simple graph created shows label on right hand side.

digraph lable_on_the_right_side {     /* define nodes */     node [color=lightblue2, style=filled, fontname=arial];     [label="s1"];    b [label="s2"];      /* define edges */     -> b [label="label on right side"]  } 

rendered dot code image

is possible let label appear on left side instead? if yes, code need like?

there aren't many ways change position of text of edge label - try add empty spaces label... double edges have effect of having 1 label right, other 1 left.

still hacky, @ least repeatable, may use headlabel (or taillabel) , use labelangle labeldistance position label you'd like:

a -> b [         headlabel="label on left side"          labeldistance=7.5          labelangle=75        ] 

enter image description here

with little trial , error may place label needed.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -