cdelker / schemdraw

MIT License
103 stars 20 forks source link

Whitespace #6

Closed pozitron57 closed 1 year ago

pozitron57 commented 1 year ago

Typically in my svg plots there is 10-20pt of a whitespace margin. It is inconvenient when display these images in the html page. Is it possible to trim all the whitespace from the plots?

cdelker commented 1 year ago

In matplotlib backend, I had to add ax.margins(0) in addition to bbox_inches='tight' to completely remove the whitespace. Since some applications may prefer some margin, I added a config option to schemdraw.config to put it back, with no margin being the default. 6bbb987