Timing diagram: Better scaling of analog values

0 votes
asked Dec 19, 2022 in Wanted features by OlliW (120 points)

Hello,

I would appreciate if the analog values scale between min/max instead of zero/max.

If the signal range is e. g. between 350 and 450, you get an almost flat curve, since the scale is 0-450. It would be convenient to use the full height of the signal area instead.

Thanks in advance (love plantUML - great job! ),

Olli

1 Answer

0 votes
answered Feb 27 by The-Lu (64,960 points)

Hi O.,

FYI: since May 1, 2020, see ref.:

We can have:

CodeOutput
@startuml
title 0-max (by default)
analog  "Analog" as A

@0
A is 350

@100
A is 450

@300
A is 350
@enduml
@startuml
title between min-max
analog  "Analog" between 350 and 450 as A

@0
A is 350

@100
A is 450

@300
A is 350
@enduml

Enjoy,
Regards,
Th.

...