How to draw diagonal lines? #881
HariSekhon
started this conversation in
General
Replies: 2 comments
-
I guessed from the C4 doc to add splines graph_attr: from diagrams import Diagram, Edge
from diagrams.programming.flowchart import Action
graph_attr = {
"splines": "spline",
}
with Diagram('Release Straight to Production!', direction='BT', graph_attr=graph_attr):
prod = Action("Prod")
for _ in range(1, 4, 1):
Action("Dev") >> Edge(label=f"Feature {_}") >> prod which gets me closer: Now why is there such a huge distance between the boxes and the arrows? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I ended up moving to D2 and getting a better result quite easily: https://github.com/HariSekhon/Diagrams-as-Code/blob/master/test_in_production.d2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to draw diagonal lines, for example, something analagous to this:
rather than this:
which looks really ugly:
I've done a couple other diagrams and played with all the examples and they don't come out anywhere near as ugly as this (this is the first time I'm trying to do a workflow with the programming node set):
https://github.com/HariSekhon/Diagrams-as-Code
Beta Was this translation helpful? Give feedback.
All reactions