-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to put label off #40
Comments
I have not found such option in the docs, but if you remove labels then you can get a plot without labels: from dna_features_viewer import BiopythonTranslator
graphic_record = BiopythonTranslator().translate_record("example_sequence.gb")
for feature in graphic_record.features:
feature.label = None
graphic_record.plot(figure_width=5) |
One way is to redefine from dna_features_viewer import BiopythonTranslator
class MyCustomTranslator(BiopythonTranslator):
def compute_feature_label(self, feature):
# display labels for CDS only, no label for other features
return "CDS here" if (feature.type == "CDS") else None
graphic_record = MyCustomTranslator().translate_record("example_sequence.gb") |
Hi Veghp and Zulko, |
While plotting from genbank file, how to keep the label off?
The text was updated successfully, but these errors were encountered: