You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The headlabel and taillabel attributes are currently not affected by the tikzedgelabels option.
Can this support be added? While creating network diagrams, I am trying to add both ends of the interface as head/tail label. The Graphviz does not support rotating any label. But dot2tex can support this (and fairly easily)
Possible Solution:
Currently the generated Latex file will have the following if lblstyle='above, sloped' is configured in dot Graph file.
based on the co-ordinates used to draw the line i.e (53.916bp,143.83bp) and (36.207bp,108.41bp), we can calculate the angle of the line using: math.degrees(math.atan2((53.916,143.83),(36.207,108.41)) using this angle, we can update the above Latex to include the angle (rotate=<degrees calculated>):
As documented in https://dot2tex.readthedocs.io/en/latest/customization_guide.html#customizing-edges
Can this support be added? While creating network diagrams, I am trying to add both ends of the interface as head/tail label. The Graphviz does not support rotating any label. But dot2tex can support this (and fairly easily)
Possible Solution:
Currently the generated Latex file will have the following if
lblstyle='above, sloped'
is configured in dot Graph file.based on the co-ordinates used to draw the line i.e
(53.916bp,143.83bp)
and(36.207bp,108.41bp)
, we can calculate the angle of the line using:math.degrees(math.atan2((53.916,143.83),(36.207,108.41))
using this angle, we can update the above Latex to include the angle (rotate=<degrees calculated>
):The text was updated successfully, but these errors were encountered: