From e6b6756ab3e592da06a70be1da21579905914b84 Mon Sep 17 00:00:00 2001 From: Harald Pretl Date: Fri, 19 Jul 2024 11:49:54 +0200 Subject: [PATCH] Change to SVG backend of schemdraw --- _sec_mosfet_diode.qmd | 5 ++--- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/_sec_mosfet_diode.qmd b/_sec_mosfet_diode.qmd index 0dc07c82..e5d6d52b 100644 --- a/_sec_mosfet_diode.qmd +++ b/_sec_mosfet_diode.qmd @@ -1,9 +1,8 @@ ```{python} -import schemdraw +import schemdraw as sd import schemdraw.elements as elm - -with schemdraw.Drawing(): +with sd.Drawing(canvas='svg'): elm.Vdd() elm.SourceI().down().label(r'$I_\mathrm{bias}$') elm.Dot() diff --git a/requirements.txt b/requirements.txt index 4df106b7..9a6aacfe 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -schemdraw +schemdraw[svgmath]