Edinburgh-Genome-Foundry / DnaFeaturesViewer

:eye: Python library to plot DNA sequence features (e.g. from Genbank files)
https://edinburgh-genome-foundry.github.io/DnaFeaturesViewer/
MIT License
584 stars 90 forks source link

Update multiline plot for translation #62

Closed RekhaAngara closed 2 years ago

RekhaAngara commented 3 years ago

https://github.com/Edinburgh-Genome-Foundry/DnaFeaturesViewer/issues/61

Adding a PR with the solution @veghp suggested

veghp commented 2 years ago

Thank you, yes this is the solution I had. There is one more thing to sort out before we merge: in some cases, a few letters are also translated on the line after the last line. See example:

test_translation.pdf

This is not related to the PDF conversion, or the crop method. I'll try and look into it, I think it will involve handling line_virtual_end properly.