How do I eliminate the lines between signals in a timing diagram?

0 votes
asked May 6 in Question / help by kepler2 (140 points)
retagged May 7 by kepler2

1 Answer

0 votes
answered May 8 by The-Lu (49,840 points)

Hello K,

Here is an attempt, using style:

@startuml
<style>
timingDiagram {
  LineColor transparent
  timeline {
    LineColor #3
  }
  clock {
    LineColor darkgreen
  }
  concise {
    LineColor darkgreen
  }
  robust {
    LineColor darkgreen
  }
  binary {
    LineColor darkgreen
  }
}
</style>

clock   "Clock_0"   as C0 with period 50
binary  "Binary"  as B
concise "Concise" as C
robust  "Robust"  as R

@0
C is Idle
R is Idle

@100
B is high
C is Waiting
R is Processing

@300
R is Waiting
@enduml

Awaiting style for the time axis... (as a wanted request to PlantUML team... wink)

If that can help,
Regard.

commented May 10 by anonymous

Is LineColor a new attribute for timingDiagram style?  I'm using Visual Studio Code renderer for development and I'm not seeing any change.

commented May 10 by The-Lu (49,840 points)

Yes, some enhancements from V1.2022.2+, then perhaps you can upgrade your PlantUML version, see:

Regards.

...