Skip to content
Graphviz (DOT) templates

Cardiac Cycle

Phases of one heartbeat with pressures and valve states.

Template previewGraphviz (DOT)
Rendering…

Make it your own.

digraph cc {
  layout=circo;
  graph [bgcolor=transparent];
  node [shape=ellipse, style=filled, fontname=Inter, fontsize=10];

  AS [label="Atrial systole\n(top-up)", fillcolor="#dbeafe"];
  IVC [label="Isovolumetric\ncontraction", fillcolor="#fef3c7"];
  Eject [label="Ventricular ejection", fillcolor="#fce7f3"];
  IVR [label="Isovolumetric\nrelaxation", fillcolor="#fef3c7"];
  Fill [label="Rapid filling", fillcolor="#dcfce7"];
  Diast [label="Diastasis", fillcolor="#dcfce7"];

  AS -> IVC [label="AV closes\nS1 sound"];
  IVC -> Eject [label="aortic opens"];
  Eject -> IVR [label="aortic closes\nS2 sound"];
  IVR -> Fill [label="AV opens"];
  Fill -> Diast;
  Diast -> AS;
}