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

arrows sometimes point to the wrong direction #70

Open
zeuner opened this issue Aug 23, 2019 · 2 comments
Open

arrows sometimes point to the wrong direction #70

zeuner opened this issue Aug 23, 2019 · 2 comments

Comments

@zeuner
Copy link

zeuner commented Aug 23, 2019

Please try the following example code as "direction.dot":

digraph { "a" -> "b"[len="0.3"]; "c" -> "a"[len="0.8"]; }

I rendered it like this:

neato -Txdot direction.dot | dot2tex -ftikz > direction.tex && pdflatex direction.tex

Now, the arrow from "c" to "a" correctly points to the "a" node from outside. But the arrow from "a" to "b" gets rendered incorrectly, making it point from inside of the "b" node to the edge between "a" and "b".

@anagorko
Copy link

I encountered the same problem.

Manually changing order of "controls" in the generated tikz file fixes it. Maybe this will hint someone to find a solution.

@anagorko
Copy link

I found a workaround for this bug: with straightedges=True option (I use the python module) the arrows point in the right direction.

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

2 participants