display namespaces one below the other

0 votes
asked Aug 25 in Wanted features by come2niks (490 points)
I have multiple namespaces which are not related to each other. I want each of them to be shown one below the other. Currently it is displayed one beside other.

1 Answer

0 votes
answered Aug 30 by agillesp (620 points)

Have you tried connecting the namespaces with a hidden vertical line?

The following seems to do the trick:

@startuml
namespace ns1 {
}
namespace ns2 {
}
ns1 -[hidden]- ns2
@enduml
 
-- Alan G.
 

PS - sorry about the line spacing - it looks fine in the comment editor, but it's all over the place when I save it :(

commented Sep 7 by come2niks (490 points)
Thanks Alan for your reply.
However that is not what I am looking for.
I needed arrows to be shown.

Thanks anyways.
...