jbloomlab / dmslogo

draw sequence logos tailored to deep mutational scanning (DMS) data
GNU General Public License v3.0
12 stars 1 forks source link

The font height is not defined properly #17

Open y9c opened 3 years ago

y9c commented 3 years ago

When ploting dmslogo as a subplot, the font height do not change when tight_layout is set.

image

jbloom commented 3 years ago

I would need a lot more of an example to figure this out, but it could be an inherent limitation of how I wrote dmslogo. The letters are rendered as fonts rather than images, so they may not re-scale properly when tight_layout is used and this may be a problem that is almost impossible to fix without entirely re-writing the package.

You might try @jbkinney and @atareen's logomaker Python package if using tight_layout is a need? I think that renders letters as SVGs which probably would re-size correctly.