Consider the picture of a transformer on the page:
How do I draw this using either TikZ (which I have not used before) or PSTricks?
pstrickstikz-pgf
Consider the picture of a transformer on the page:
How do I draw this using either TikZ (which I have not used before) or PSTricks?
Best Answer
It's quite easy to set up custom axes in
TikZ
: for instance,x={(0.707,0.707)}
means that the x-vector points in direction of 45° (up right) with length 1 (in general :(r cos angle,r sin angle)
). I used 45°, 165° and 90° for x, y and z axes. The hard part is imagining what coordinates to use. Another difficulty is the upper part of the left coil: if you draw it via aforeach
loop, then some parts are in front of the front face, while some are behind it, so I used ascope
to restrict the drawing.Edit 1: To help you figure out where you are in 3D, you can append this in the
tikzpicture
: