cdelker / schemdraw

MIT License
103 stars 20 forks source link

Bad label positioning with loc='bot' #24

Closed pozitron57 closed 7 months ago

pozitron57 commented 7 months ago
import schemdraw
import schemdraw.elements as elm
import ziamath as zm
elm.style(elm.STYLE_IEC)
zm.config.svg2 = False

with schemdraw.Drawing(canvas='svg') as d:
    d.config(fontsize=26)

    d += elm.Resistor().label('$R_1$')
    d += elm.Resistor().label('$R_2$', loc='bot')

    d.save('test.svg')

image

cdelker commented 7 months ago

Fixed 40311edb6be70cd9ae8886e70627db23edb660f2.