Force UML output to grow vertically instead of horizontally

+1 vote
asked Feb 10 in Question / help by msawye16 (140 points)
Apologies if this is covered in the documentation but I have not been able to find anything.

PlantUML class diagrams tend to grow horizontally.

I am dealing with a large UML diagram and I would like to "encourage" the diagram to grow vertically.

Any help will be appreciated.

Thanks,

Mark

1 Answer

+1 vote
answered 6 days ago by Serge Wenger Work (12,520 points)

Hello,

With "-" diagram grows horizonzally. With "--" vertically. It is general in PlantUML. For example:

@startuml
class A
Class B
Class C
Class D
A <|- B
B <|-- C
C<|-- D
@enduml

You can find in the doc :https://plantuml.com/en/use-case-diagram Changing arrows direction

commented 6 days ago by msawye16 (140 points)

I've been a PlantUML user for many years and I am embarrassed to say that I did not know about the differences between single and double dashes

surprise

Thanks for the tip ...

/mbs

commented 6 days ago by Serge Wenger Work (12,520 points)
You are welcome
commented 5 days ago by albert (2,640 points)
You were not alone on the difference between "-" and "--"
commented 5 days ago by msawye16 (140 points)

A well kept secret wink

...