cdelker/schemdraw

Source elements don't use .tox(), .toy() methods

pozitron57 opened this issue · 1 comments

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)

gives
image

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)

image

Fixed 43d8c81.