wilkelab / Opfi

A Python package for discovery, annotation, and analysis of gene clusters in genomics or metagenomics data sets.
https://opfi.readthedocs.io/
MIT License
21 stars 5 forks source link

Dynamically adjust figure width so that tick labels don't overlap. #106

Closed jimrybarski closed 4 years ago

jimrybarski commented 4 years ago

The problem was that the figure width was hard coded to 5. Basing it on the size of the operon ensures good spacing, at least with some arbitrary operons I tested. Here I'm setting the width as the operon length in bp divided by 900, which empirically gives good spacing and makes features large and easy to read. This may need to be adjusted in the future. The wider the figure width, the better the label spacing, but the worse the legibility of the features.

Resolves #99.