数据引脚 - 堆栈大小错误

数据引脚 - 堆栈大小错误

我试图在我的图(示波器捕获)中放置一个“数据中的引脚”标签,但我收到了此错误消息

tex capacity exceeded sorry [input stack size=5000]

这是我的 MWE,当删除注释中指示的 pin-in-data 行时,可以正确编译。

\begin{tikzpicture}

        \usetikzlibrary{datavisualization}

        \tikzset{
        %define custom "osciloscope axis"
        data visualization/our system/.style={
        new Cartesian axis=horizontal axis,
        new Cartesian axis=vertical axis,
        %
        horizontal axis={unit vector={(1pt,0 cm)},length=6 cm},
        vertical axis={unit vector={(0cm,1pt)},length=5 cm},
        %
        horizontal axis ={attribute=xpos, min value=-5, max value=5},
        vertical axis ={attribute=ypos, min value=-4, max value=4},
        %
        horizontal axis= {visualize axis={vertical axis={goto=max},low=-5,high=5},
                        visualize axis={vertical axis={goto pos=0.5},low=-5,high=5},
                        visualize axis={vertical axis={goto=min},low=-5,high=5},
                        ticks={step=1, minor steps between steps=4}},
        vertical axis= {visualize axis={horizontal axis={goto=min},low=-4,high=4},
                      visualize axis={horizontal axis={goto pos=0.5},low=-4,high=4},
                      visualize axis={horizontal axis={goto=max},low=-4,high=4},
                      ticks={step=1, minor steps between steps=4}},
        %
        all axes={grid={some}},
        vertical axis={visualize grid={direction axis=horizontal axis, common={style={black!90,dotted}}},
                    visualize ticks={direction axis=horizontal axis,low=-2,high=2pt,horizontal axis={goto=0}}},
        horizontal axis={visualize grid={direction axis=vertical axis, common={style={black!90,dotted}}},
                    visualize ticks={direction axis=vertical axis,low=-2,high=2pt,vertical axis={goto=0}}}
        }
        }

        \tikz \datavisualization [
        our system,
        all axes={grid=many},
        visualize as line=signal,
        %signal={pin in data={text=$My labels$,index=1,pin length= 5 ex, pin angle= 45}}, % this is the line that doesn't work
        style sheet= vary hue,% label in data
        ]
        data [set=signal] {
        xpos, ypos
        -4.966, 3.044
        4.946, 2.811
        };

\end{tikzpicture}

谢谢您的帮助,如能提供任何建议我将不胜感激!

迭戈

答案1

我刚刚发现了错误,但仍然不知道为什么错误。

线

    \tikz \datavisualization [

应替换为

    \datavisualization [

有人可以解释或提示一下它们之间的区别吗?

相关内容