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)
gives
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)
Source, Lamp, Lamp2 (at least) don't follow .tox() method:
gives![image](https://github.com/cdelker/schemdraw/assets/9392655/68dcd77a-ff88-45e2-a99a-ad7f67280614)
while other elements such as Capacitor, Resistor, Inductor etc. are placed correctly with the same code: