-
Notifications
You must be signed in to change notification settings - Fork 79
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
sourmash compare matrix plot matplotlib labels too large/overlapping #2587
Comments
sourmash plot could certainly use some love! It was one of the first things we implemented ~6 years ago, and (FBFW) has driven a lot of our citations... but we haven't upgraded it, ever. This was due to some combination of:
This is all me saying that it's never risen to the level of "gotta fix" but has definitely risen to the level of "hmmmm yeah we should really be doing something about that." A few related thoughts and issues - the R package, sourmashconsumrsourmashconsumr #2492 is an R package that has some nice viz: sourmash plot isn't doing the right thing, I thinkper #2406, I appear to have mixed up my similarity and distance matrices. better label handling, plot annotation, etcper #2452, there are some good opportunities to make editing label names better (since I intuit that is a lot of what people want to do) per #2583 there are lots of opportunities to annotate dendrograms with more information plugins are now a thingper #1353 and #2438 in particular it would now be straightforward to experiment with other clustering and viz techniques all from within the relative safety of the sourmash command line. this would permit the addition of dependencies that we don't want to add to core sourmash (for size and/or platform/install and/or support reasons) to support better output viz. this is all to say... we just need someone who cares, or at least pointers to some good plots from other packages that we can steal ;). I know this is an active area, I just don't have a starting point! |
That all makes sense. One size fits all visualisation defaults are not easy. |
additional thoughts -
|
more from slack:
|
The |
Running
sourmash plot --pdf --labels example.npy
with ~200 signatures gives plots where the labels are too large and therefore overlap.Looking at https://github.com/sourmash-bio/sourmash/blob/latest/src/sourmash/fig.py it does not appear to alter the matplotlib default font sizes, but resources like https://stackoverflow.com/questions/3899980/how-to-change-the-font-size-on-a-matplotlib-plot suggests we might reduce the font size and/or increase the image size for larger datasets.
Is this a bug, or would your recommendation be to follow https://sourmash.readthedocs.io/en/latest/plotting-compare.html#Customizing-plots and customise the plot by writing a modified version of the
sourmash/fig.py
code?The text was updated successfully, but these errors were encountered: