I am new to tikz / circuitikz, each time I try to make a spring or snake I got only a straight line:

%%circuitikz  filename=p236 dpi=100
\draw[snake=coil]                  (0,1) -- (3,1);
\draw[snake=coil,segment aspect=0] (0,0) -- (3,

I work in a jupyter notebook and I think the problems is I can't set lib which seams to be needed to accomplish it?

Any help? Henri

1 Answer 1


I do not get a straight line. Are you by chance afraid of snakes? ;-)

\draw[snake=coil]                  (0,1) -- (3,1);
\draw[snake=coil,segment aspect=0] (0,0) -- (3,0);

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .