N2G
N2G copied to clipboard
Center text horizontally if only has "bottom_label", no "top-label"
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.
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.