N2G icon indicating copy to clipboard operation
N2G copied to clipboard

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

Open pengembaratemporer opened this issue 1 year ago • 1 comments

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 avatar Jun 25 '23 15:06 pengembaratemporer

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.

pengembaratemporer avatar Jul 07 '23 07:07 pengembaratemporer