Skip to content

Support multicolor visualizations using viz_spy() #11

@fedarko

Description

@fedarko

It's possible to do this by calling spy() on the same matplotlib Axes object multiple times (once per color drawn).

This is slower than binary visualizations of an equivalent matrix, of course, since we have to filter the matrix to each unique color and then call spy() multiple times. However, spy() is already very fast, so the visualization taking ~2 seconds instead of ~0.5 seconds could be worth it. (Of course, we should probably also include an option to use the "classic" method of just producing a binary visualization of the matrix, in case the main thing is performance.)

See below for an example of such a multicolor visualization of the E. coli dot plot from the tutorial:

image

Started working on this a few days ago in the nbspy branch: https://github.com/fedarko/wotplot/tree/nbspy

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions