控制电路连接点的尺寸

控制电路连接点的尺寸

有没有办法控制 circuitikz 中连接点/开口圆的大小?

它似乎bipoles/length影响一切,包括连接点大小;我想保持连接点大小不变但减小bipoles/length,但我不知道是什么导致了点大小。

答案1

找到了!就是nodes width

来自 pgfcirc.defines.tex:

\ctikzset{nodes width/.initial=.04}

来自 pgfcircshapes.tex:

%% Empty terminal

\pgfdeclareshape{ocirc}{
        \anchor{center}{
                \pgfpointorigin
        }
        \anchorborder{
                \pgf@circ@res@left=\pgf@x
                \pgf@circ@res@up=\pgf@y
                \pgfpointborderellipse{\pgfpoint{\pgf@circ@res@left}{\pgf@circ@res@up}
}{\pgfpoint{\pgfkeysvalueof{/tikz/circuitikz/nodes width}*\pgf@circ@Rlen}{\pgfkeysvalueof{/tikz/circuitikz/nodes width}*\pgf@circ@Rlen}}
        }

        \behindforegroundpath{

                \pgfscope
                        \pgfpathcircle{\pgfpointorigin}{\pgfkeysvalueof{/tikz/circuitikz/nodes width}*\pgf@circ@Rlen}
                        \pgfsetcolor{\pgfkeysvalueof{/tikz/circuitikz/color}}
                        \pgfsetfillcolor{white}
                        \pgfusepath{draw,fill}
                \endpgfscope

                }
}

相关内容