Source elements don't use .tox(), .toy() methods
pozitron57 opened this issue · 1 comments
pozitron57 commented
Source, Lamp, Lamp2 (at least) don't follow .tox() method:
import schemdraw
import schemdraw.elements as elm
with schemdraw.Drawing() as d:
d += (R:= elm.Resistor().hold() )
d += elm.Line().down()
d += elm.Lamp().tox(R.end)
while other elements such as Capacitor, Resistor, Inductor etc. are placed correctly with the same code:
with schemdraw.Drawing() as d:
d += (R:= elm.Resistor().hold() )
d += elm.Line().down()
d += elm.Capacitor().tox(R.end)