Closed pozitron57 closed 1 year ago
I think it's leaving enough horizontal space to display the string "\mathcal{E}" rather than "ℰ". I'll see what I can do with it, but one workaround for this particular circuit is to skip the Latex math and just use the unicode symbol:
E = d.add(elm.BatteryCell().up().label('ℰ'))
I see. Thanks for the idea. I did the following to keep the latex math:
from matplotlib import rc
rc('text', usetex=True)
rc('text.latex', preamble=r'\def\E{$\mathcal{E}$}')
...
E = d.add(elm.BatteryCell().up().label('\E'))
dfc2850
How can I control and trim the whitespace? matplotlib has
bbox_inches='tight'
, is there something similar that can be used with schemdraw? The following code gives too much of blank space to the left of the actual figure. I tried svg backend, different formats, but it is always the same.