Comments (2)
from diagrams.
You can add some 'hidden points & lines' to reorder the nodes.
- by default,
direction="TB"
will list your nodes from left2right, because there is no any relations - then, if you
NAT_QA -- NAT_DEV
, TB layout will move dev to next line
So, if you have enough patient, you can create additional Node(color=transparent), Edge(color=transparent), Cluster(color=transparent)
to order nodes.
e.g. to make 3 clusters vertical, I create 3 hidden points in each of them, and connect with hidden edge.
with Cluster("identity"):
S3()
Terraform()
Cloudtrail()
p1 = HiddenPoint()
with Cluster("identity2"):
S3()
Terraform()
Cloudtrail()
p2 = HiddenPoint()
with Cluster("identity3"):
S3()
Terraform()
Cloudtrail()
p3 = HiddenPoint()
# p1 - p2 - p3
peercluster(p1, p2, p3, penwidth="0", minlen="1") # util method in my repo
Sample: https://github.com/Anddd7/diagrams-patterns/blob/main/poc_aws_complex.py#L94
Another way is using neato
as the layout engine, then create node with x,y ... if you really want to control the layout
Sample: https://github.com/Anddd7/diagrams-patterns/blob/main/poc_neato_overlap.py
from diagrams.
Related Issues (20)
- Where does the extra space come from?
- Change Layout direction in cluster with connections HOT 1
- Wana join me for a New App giving people There control of there phones back ? 🆓🥔 freepotato.atlassian.net
- links between object misaligned and straight HOT 2
- How do you generate diagrams with transparent background?
- Add AWS Managed Workflow for Airflow Apache
- Is there a node for Kubernetes itself?
- Add edge flow animation
- Icon Request: Azure Speech To Text , Azure Open AI HOT 1
- sequence diagram HOT 1
- How to force diagram to be larger (width and height) HOT 1
- Create diagrams spin-off repo for additional resources?
- Feature Request: Snowflake Resource Support
- Is there a way to draw entity relationship diagram erd?
- ModuleNotFoundError: No module named 'diagrams' | macos sonoma 14.4 - homebrew HOT 1
- This idea is just too good to just die HOT 1
- Add support for Streamlit and in-line rendering
- plz add edge: cluster-to-cluster and cluster-to-node.
- The arrow rendering is buggy. Most of the time, the edges are just messy. We need a better algorithm plz.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diagrams.