Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing edge labels without overlap #81

Open
EricG-Personal opened this issue Mar 4, 2020 · 0 comments
Open

Drawing edge labels without overlap #81

EricG-Personal opened this issue Mar 4, 2020 · 0 comments

Comments

@EricG-Personal
Copy link

EricG-Personal commented Mar 4, 2020

This may fundamentally be a graphviz issue, but thought I would ask here in case some aspect of this can be handled by this project or there is some special value I can use with lblstyle or other property that may resolve the problem.

I have the following dot graph:

digraph G {
    splines=ortho
    rankdir=LR;
    edge [lblstyle="above, sloped"];
    A -> B [label="a long label"];
    A -> C [label="a long label"];
    A -> A [label="a very long label"];
    A -> A [label="a very long label"];
    A -> D [label="a long label"];
}

What I would like, with respect to the edge labels is:

  1. edge labels do not overlap with each other
  2. edge labels do not overlap edges
  3. edge labels are drawn along the edge or inline with them

I generate my tex document by doing:

dot -Txdot test.dot | dot2tex --tikzedgelabel > test.tex

and this generate the following graph

Screen Shot 2020-03-04 at 1 40 40 PM

I have tried other spline styles, but none produce good results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant