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

Center text horizontally if only has "bottom_label", no "top-label" #24

Open
pengembaratemporer opened this issue Jun 25, 2023 · 1 comment

Comments

@pengembaratemporer
Copy link

hi, lets say i have equipment (from sample doc) with :
{'id': 'SW1', 'top_label': 'CORE', 'bottom_label': '1,1,1,1'}

it will create a reacangular with equal spacing at top and bottom.

But if i only have one label, either top_label or bottom_label, it will create unequal spacing.

How to make spacing equal ?

thanks.

@pengembaratemporer
Copy link
Author

After some trial, found some other way : set width and height of the box, using:
diagram.add_node(node,width=xxx,height=yyy)

thanks author for the great tool.

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