PlantUML different layouts
Asked Answered
F

1

40

I am using PlantUML API to generate Activity Diagram.

I have used GraphViz before and used rank parameter to define layout

rank=LR [for left to right]

I am trying to find similiar thing in PlantUML where I can change its orientation to "Left to Right" instead of existing layout i.e. "Top to Bottom".

Faena answered 14/5, 2012 at 10:45 Comment(0)
E
66

You can use the following command with State, Class, Component or Usecase diagrams:

left to right direction

A pretty good graphical example of how this works can be found in the Hitchhiker's Guide

Emmieemmit answered 14/5, 2012 at 17:30 Comment(4)
This is implemented as beta feature in version 7929.Emmieemmit
I have 3 namespaces in the UML. The image that gets generated is too wide. I tried to use top to bottom direction but that hasn't had any effectUpheaval
@Upheaval Same for me. Interestingly, if I use left to right, I get a narrower diagram.Mountain
Using left to right direction also seems to transpose the direction of the arrows in a Class Diagram – if you have arrows pointing -up->, they will be rendered pointing left, but arrows pointing -left-> will render pointing up.Gluttonous

© 2022 - 2024 — McMap. All rights reserved.