cdelker / schemdraw

MIT License
103 stars 20 forks source link

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

Closed pozitron57 closed 7 months ago

pozitron57 commented 7 months ago

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

cdelker commented 7 months ago

Fixed 43d8c81d77a4cb4ed7b0f46765647a40fbf3a742.