Schemdraw documentation

Schemdraw is a Python package for producing high-quality electrical circuit schematic diagrams. Circuit elements are added, one at a time, similar to how you might draw them by hand, using Python methods.

For example,

d = schemdraw.Drawing()

creates a new schemdraw drawing. Then using += or the d.add method,

d += elm.Resistor().right().label('1Ω')

will add a resistor, going to the right with a label of “1Ω”. The next element added to the drawing will start at the endpoint of the resistor. Display the results using the draw method.

d = schemdraw.Drawing()
d += elm.Capacitor().down().label('10μF')
d += elm.Line().left()
d += elm.SourceSin().up().label('10V')