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:

Started working on this a few days ago in the nbspy branch: https://github.com/fedarko/wotplot/tree/nbspy
It's possible to do this by calling
spy()on the same matplotlibAxesobject 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:
Started working on this a few days ago in the
nbspybranch: https://github.com/fedarko/wotplot/tree/nbspy