如何在 tikz-timing 图中添加 y 标签?

如何在 tikz-timing 图中添加 y 标签?

平均能量损失

\documentclass[border=2mm]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usepackage{tikz-timing}
\begin{document}
\begin{tikztimingtable}[
scale=2.5,
timing/slope=0.1,
timing/rowdist=3ex
]
\textnormal{Clock} & [black] 4{hz} \\
\extracode
 \begin{background}
 \node[anchor=south east,inner sep=1 pt] at (0,1){\tiny k};
 \node[anchor=south east,inner sep=1 pt] at (0,.5){\tiny o};
 \node[anchor=south east,inner sep=1 pt] at (0,0){\tiny c};
 \end{background}
\begin{pgfonlayer}{background}
\vertlines[help lines]{0,1,3,4}
\end{pgfonlayer}
\tablegrid
\end{tikztimingtable}
\end{document}

我想要输出,

在此处输入图片描述

如何添加(中心)o, 和C

相关:tikz-timing:除 D 以外的符号中的文本标签以及时间轴不连续性

答案1

晚上好,

时间表为从第 1 行(第 15 页)开始的所有行提供标签tikz-timing.pdf)。因此你可以将节点放置在第 1 行的西侧。

代码:

\documentclass[border=2mm]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usepackage{tikz-timing}
\begin{document}
\begin{tikztimingtable}[
scale=2.5,
timing/slope=0.1,
timing/rowdist=3ex
]
\textnormal{Clock} & [black] 4{hz} \\
\extracode
 \begin{background}
 %\node[anchor=south east,inner sep=1 pt] at (0,1){\tiny k};
 %\node[anchor=south east,inner sep=1 pt] at (0,.5){\tiny o};
 %\node[anchor=south east,inner sep=1 pt] at (0,0){\tiny c};
 \node[anchor=east] at (row1.north west){\tiny k};
 \node[anchor=east] at (row1.west){\tiny o};
 \node[anchor=east] at (row1.south west){\tiny c};
 \end{background}
\begin{pgfonlayer}{background}
\vertlines[help lines]{0,1,3,4}
\end{pgfonlayer}
\tablegrid
\end{tikztimingtable}
\end{document}

输出: 在此处输入图片描述

您可以使用参数调整节点的位置xshift

干杯!

相关内容