Skip to content

Support multicolor visualizations using viz_spy() #11

Closed

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

Activity

  1. added
    enhancement
    on Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions