Add ability to contol placement of a constraint in a timing diagram

0 votes
asked Aug 4, 2020 in Wanted features by nwaters (180 points)

In a timing diagram, when I add a constraint ( <-> ), it is rendered directly above where the signal is at the start of that signal. This can lead to the constraint being rendered directly over the signal and becoming unreadable.

In this example it would be ideal if the constraints were always placed above the value '1':

1 Answer

0 votes
answered Aug 19, 2020 by plantuml (295,760 points)
Thanks for the report.

Could you post a simple source diagram that shows the issue ?
commented Oct 4, 2021 by anonymous
is this Problem solved?

@startuml

robust "Web Browser" as WB

WB has ReceiveDat,LowPower,Idle

WB is Idle

@WB
0 is ReceiveDat
+100 is LowPower
+100 is Idle
+100 is LowPower
+100 is Idle
+100 is LowPower
+100 is ReceiveDat
+100 is LowPower
+100 is Idle
WB@0 <-> @100 : {50 ms}
WB@300 <-> @400 : {50 ms}
WB@500 <-> @+300 : {50 ms}
@enduml

this text is displayed inside the diagram and not above!
WB@500 <-> @+300 : {50 ms}
commented Oct 4, 2021 by The-Lu (70,400 points)
edited Oct 4, 2021 by The-Lu

Hello all,

Here is also another example:

@startuml
robust R
@0
R is 0
@1
R is 1
@2
R is 0
@3
R is 1
@5
R is 0
@10
R is 1

R@0 <-> @2 : {A long label}
R@2 <-> @5 : {Another long label}
R@5 <-> @10 : {Another long label}
@enduml

Or:

@startuml
robust R
@0
R is 0
@1
R is 1
@2
R is 0
@3
R is 1
@5
R is 0
@10
R is 1

R@0 <-> @3 : {A long label}
R@3 <-> @7 : {Another long label}
R@7 <-> @11 : {Another long label}
@enduml


Regards,
Th.

commented Oct 4, 2021 by The-Lu (70,400 points)

Hello all,

Compare also:

BinaryRobust
@startuml
binary "Binary" as Bin

@Bin
0 is 0
+200 is 1
+100 is 0
@100 <-> @300 : {200 ms}
@enduml
@startuml
robust "Robust" as Bin

@Bin
0 is 0
+200 is 1
+100 is 0
@100 <-> @300 : {200 ms}
@enduml

Regards,
Th.

commented Oct 5, 2021 by plantuml (295,760 points)
Thanks for the report, this is fixed in last release V1.2021.12

Tell us if you find other issues!
...