I can't seem to flip a transistor in Circuitikz:
\documentclass{standalone}
\usepackage{circuitikz}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) to [Tnigfetd] (0,2) node[]{NORMAL};
\draw (2,0) to [Tnigfetd, xscale=-1] (2,2) node[]{FLIPPED};
\end{tikzpicture}
\end{document}
Instead of flipping the shape about the horizontal axis, it flips where it puts the transistor:
How can I fix this?
(Other posts to this site have used xscale=-1
successfully with transistors, e.g. Flipping or rotating nodes in Tikz but not the labels)
Best Answer
The
Tnigfetd
is a path-type component, not a node-type one. So you usemirror
(perpendicular to the path direction) andinvert
(parallel, although for historical reasons the logic is a bit strange):Never use
xscale
andyscale
with path-type components, they mess with the coordinates (as you saw).The relevant part of the documentation is here: