Skip to content

Introduction

Perhaps one of the best ways to demonstrate schemgo is to compare it to its peers.

Let us draw a simple circuit diagram with a battery and a resistor:

schemgo:

battery.right
line.up
resistor.left
line.down

schemdraw:

import schemdraw
from schemdraw import elements as e

with schemdraw.Drawing():
    e.Battery().right()
    e.Line().up()
    e.Resistor().left()
    e.Line().down()

circuitikz:

\begin{circuitikz}
    \draw (0,0) to[battery] (2,0)
                to[resistor] (2,-2)
                to[short] (0,-2)
                to[short] (0,0);
\end{circuitikz}