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

Unable to change sequence font size #60

Closed katondr closed 2 years ago

katondr commented 3 years ago

Sequence font size can not be changed when using plot_sequence. The update() method seem to accumulate value inputed.

veghp commented 3 years ago

Thank you, yes it does seem that dict(size=11) is assigned to fontdict, regardless of input. I'll have a look into it.

Zulko commented 3 years ago

I believe the correction should be as follow to keep the default size=11

fontdict = {"size": 11, **(fontdict or {})} 
katondr commented 3 years ago

Thank you everyone. I also agree with this,

I believe the correction should be as follow to keep the default size=11

fontdict = {"size": 11, **(fontdict or {})} 

Shall fontdict on plot_translation() to be modified that way too? I wonder from where this function get font size value when not manually declared. fontdict = fontdict or {}