Timing Diagram

0 votes
asked Apr 14, 2022 in Question / help by Fred

Hello,

I started to create a simple timing diagram for my heating schedule. The generated diagram is not correct. If i modify the @5:50 to @6:00 it works. Can someone help me to understand this behavior?

Thanks a lot!

@startuml
robust "Heating" as HT

@5:00:00
HT is Off

@5:50:00
HT is On


@22:00:00
HT is Off

@enduml

commented Apr 14, 2022 by The-Lu (63,920 points)

Hello F.,

It is a question of scale...

Without minutes (or minutes set to `00`), the unit (space between stick) is one hour, as:

But with minutes (on with `50`), the unit will be 10 minutes..., as:

If that can help,
Regards.

commented Apr 14, 2022 by anonymous
Hello,

thank you very much! Is it possible to override this auto-scale behavior? I like the scale of your first version, but i would start at 5:50 if possible.

1 Answer

0 votes
answered Apr 15, 2022 by The-Lu (63,920 points)
 
Best answer

Hello F.,

It is a question of scale... and after search...

See:

You can use `scale`, as :

@startuml
scale 6120 as 60 pixels
robust "Heating" as HT

@5:00:00
HT is Off

@5:50:00
HT is On

@22:00:00
HT is Off
@enduml

Then here is the expected result:

Regards.

commented Apr 15, 2022 by anonymous
Thanks. Happy Easter :-)
...