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

Mixing direction in the same diagram #909

Open
max-rocket-internet opened this issue Jun 23, 2023 · 1 comment
Open

Mixing direction in the same diagram #909

max-rocket-internet opened this issue Jun 23, 2023 · 1 comment

Comments

@max-rocket-internet
Copy link

I would like to use different direction settings per Cluster. Is this possible?

For example:

from diagrams import Cluster, Diagram
from diagrams.k8s.compute import Pod

with Diagram("test", show=False, direction="TB"):
    with Cluster("cloud region: ap-east-1"):
        with Cluster("account_1"):
            with Cluster("Cluster_1", direction="LR"):
                p1 = Pod("p1")
                p2 = Pod("p2")
                p3 = Pod("p3")
            with Cluster("Cluster_2", direction="LR"):
                p4 = Pod("p4")
                p5 = Pod("p5")
                p6 = Pod("p6")

Which produces this:

image

But I want Cluster_1 above Cluster_2.

@max-rocket-internet
Copy link
Author

I know I can kind of achieve it with ?? - Edge(penwidth="0") - ?? but this is a pain with lots of objects.

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