Arrow direction confusing or wrong

0 votes
asked Jun 13, 2022 in Question / help by Stalkarn (120 points)

Hi! 

First, I apologize for the ugly image, but my diagram is on a computer with no internet.

I'm trying to make a diagram that looks like this:

With the exact code as in the picture above.

But my result is this. The arrows is diagonal and Right is to the Left and Left is Up to the Left et.c.

I'm using plantuml 1.2022.3 with graphviz 2.30.1.

All examples I have seen and the test I did here on PlantUML server looks correct, and I haven't seen anyone else with this problem.

Any ideas what why I get this result? Old graphviz? 

I can't download and try as my company doesn't allow it.

commented Jun 13, 2022 by The-Lu (64,340 points)

Hello S.,

  • Could you test without `graphviz`?

with adding:

!pragma layout smetana

See doc. here:

If that can help,
Regards.

commented Jun 13, 2022 by Martin (8,360 points)

You could try drawing this Graphviz version of the diagram and see if the issue persists:

@startuml
digraph unix {
nodesep=0.486111;
ranksep=0.833333;
remincross=true;
searchsize=500;
sh0007 [shape=rect,label="Left",width=0.888889,height=0.661241,color="#000007"];
sh0005 [shape=rect,label="Up",width=0.791667,height=0.661241,color="#000005"];
sh0007->sh0004[arrowtail=empty,arrowhead=none,dir=back,arrowsize=0.5,minlen=0,color="#000011"];
sh0004->sh0008[arrowsize=0.5,minlen=0,color="#000015"];
sh0004 [shape=rect,label="A",width=0.680556,height=0.661241,color="#000004"];
sh0006 [shape=rect,label="Down",width=1.041667,height=0.661241,color="#000006"];
sh0008 [shape=rect,label="Right",width=1.013889,height=0.661241,color="#000008"];
sh0005->sh0004[arrowtail=empty,arrowhead=none,dir=back,arrowsize=0.5,minlen=1,color="#000009"];
sh0004->sh0006[arrowsize=0.5,minlen=1,color="#00000D"];
}
@enduml

AFAIK Plantuml will pass it straight thru to Graphviz.  Alternatively you could process it through Graphviz without Plantuml.

commented Jun 14, 2022 by Stalkarn (120 points)
Hello!

I tried both of the suggestions and...... wait for it ...... it worked! That's perfect because that means I can make sure to get a newer (I assume) version of graphviz, as well as use smetana in the meantime.

Thanks to you both!

Regards David

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...