question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing labels and captions in plots with default settings

See original GitHub issue

Following workflow produced plots without labels or class colors (edited for brevity):

pyani index pyani_sample_genomes
pyani anim pyani_sample_genomes pyani_sample_genomes_anim
pyani plot --formats png,pdf pyani_sample_genomes_anim 1

Solution is to explicitly set labels and classes when call pyani anim,

pyani index pyani_sample_genomes
pyani anim pyani_sample_genomes pyani_sample_genomes_anim \
--labels pyani_sample_genomes/labels.txt --classes pyani_sample_genomes/classes.txt
pyani plot --formats png,pdf pyani_sample_genomes_anim 1

Would it make sense to have --labels and --classes default to $DIR/labels.txt and $DIR/classes.txt if present when run on input directory $DIR?

If no labels are given, would it make sense to use the filename stems as the default labels?

(I’m also puzzled why the classes and labels are tied to the run; I expected pyani index $DIR to record them from $DIR/labels.txt and $DIR/classes.txt)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
widdowquinncommented, Apr 18, 2021

This is another thing that should go into the doumentation - the design goals and motivation for the database integration and how that affects the way we need to provide metadata for visualisation.

1reaction
widdowquinncommented, Aug 19, 2020

I should really write this stuff down somewhere 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add or remove data labels in a chart
Right-click the data series or data label to display more data for, and then click Format Data Labels. Click Label Options and under...
Read more >
Plots without titles/labels in R
In plot() , main , sub , xlab , and ylab all default to NULL , but this just leaves blank space where...
Read more >
Show, Hide, and Format Mark Labels
If the marks are dense, you may not see labels for all the marks unless you check the option Allow labels to overlap...
Read more >
FAQ-154 How do I customize the default axis titles and ...
The default legend text can be modified by going to the Plot Details > Legends/Titles tab and changing the Translation mode of %(1),...
Read more >
Figure labels: suptitle, supxlabel, supylabel
Figure labels: suptitle, supxlabel, supylabel# ; = plt · subplots ; ): ax · set_xlim ; = ax · plot ; ) ax...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found