Pictorial Elements

Pictorial Style Elements

class schemdraw.pictorial.pictorial.Breadboard(*args, **kwargs)

Solderless Breadboard, 400-point (30 rows)

Use .color() to set border color, and .fill() to set fill color.

class schemdraw.pictorial.pictorial.CapacitorCeramic(*args, **kwargs)

Ceramic Disc Capacitor

class schemdraw.pictorial.pictorial.CapacitorElectrolytic(*args, **kwargs)

Electrolytic capacitor

Note: Use .fill() to change color.

Parameters:
  • cap_color – Color of the metal cap on top

  • stripe_color – Color of the polarity stripe

class schemdraw.pictorial.pictorial.CapacitorMylar(*args, **kwargs)

Mylar Capacitor

class schemdraw.pictorial.pictorial.DIP(*args, **kwargs)

Dual-Inline-Package IC

Parameters:
  • npins – Total number of pins

  • wide – Use wide (0.6 inch) package instead of narrow (0.3 inch) package

class schemdraw.pictorial.pictorial.Diode(*args, **kwargs)

Diode in DO-204 package

class schemdraw.pictorial.pictorial.ElementPictorial(*args, **kwargs)

This class gives pictorial 2-term elements silver lead extensions

class schemdraw.pictorial.pictorial.LED(*args, **kwargs)

Light Emitting Diode Use .fill() to set the color.

Suggested fill colors for common LEDs:
  • red: #dd4433,

  • orange: #efa207

  • yellow: #f1de0f

  • green: #4be317

  • blue: #3892bc

  • white/clear: #e5e5e5

class schemdraw.pictorial.pictorial.LEDBlue(*args, **kwargs)

Blue Light Emitting Diode

class schemdraw.pictorial.pictorial.LEDGreen(*args, **kwargs)

Green Light Emitting Diode

class schemdraw.pictorial.pictorial.LEDOrange(*args, **kwargs)

Orange Light Emitting Diode

class schemdraw.pictorial.pictorial.LEDWhite(*args, **kwargs)

White Light Emitting Diode

class schemdraw.pictorial.pictorial.LEDYellow(*args, **kwargs)

Yellow Light Emitting Diode

class schemdraw.pictorial.pictorial.Resistor(*args, **kwargs)

Carbon-film 1/4 Watt Resistor

Parameters:
  • value – Resistance value, used to set color bands

  • tolerance – Tolerance value for 4th color band

Note: Color bands will be closest possible value that can be represented

with 3 bands

class schemdraw.pictorial.pictorial.TO92(*args, **kwargs)

TO92 Transistor Package, with pins bent out to 0.1 inch breadboard spacing

schemdraw.pictorial.pictorial.parse_size_to_units(value: str) float

Parse a SVG size string (sunh as ‘2in’) to drawing units

schemdraw.pictorial.pictorial.resistor_colors(value: float, tolerance: float | None = None) tuple[str, str, str, str | None]

Determine Resistor color bands given the value (ohms) and tolerance (in percent)

class schemdraw.pictorial.fritz.FritzingPart(*args, **kwargs)

Load a Fritzing Part File as a Schemdraw Element

Anchors will be extracted from the Part definition file. Note some anchors are not valid Python identifiers and therefore must be accessed through the Element.absanchors dictionary rather than an attribute of the element instance.

Parameters:
  • fname – Filename of fritzing .fzpz archive

  • partname – Name of part within the file. Use listparts to show all names. If not provided, first part is drawn.

  • partidx – Index of part within the file. If not provided, first part is drawn. Overrides partname.

  • scale – Scale factor