Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Notes can not be added beside a grouping message

0 votes

This PlantUML code:

alt foo
Bob->Alice : hello
Bob<-Alice : hello
end
note right: Some explication on the large unused space beside the alt block.
Alice->John_smith : hello
Alice->An_other_actor : hello

generate this:

As you can see, I can't add a note at the right of the alt block.

asked Mar 10 in bug by roipoussiere (180 points)

2 Answers

0 votes

Hello,

You use the following woraround:

@startuml
alt foo
Bob->Alice : hello
note over John_smith, An_other_actor: Some explication \non the large unused\n space beside the alt block.
Bob<-Alice : hello
end
note over John_smith, An_other_actor: Another expalanation
 
Alice->John_smith : hello
Alice->An_other_actor : hello
@enduml
 
It would be also nice to have the possibility to put negative space like this:
|| -10||
With this new feature, you will have exactly what you want
Hope this helps
 
answered Mar 10 by Serge Wenger Work (5,070 points)
Thank you.

Your code is not exactly what I am looking for, because the note is inside the alt block, not beside. ;-)
0 votes
answered Mar 13 by plantuml (125,210 points)
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...