arq5x/scurgen — pull request #18 by daler (2012-09-13 13:28:35+00:00)
Title: text box showing corresponding genomic coords of mouse position in matrix

The text in the top axes updates upon mouse movement, showing the genomic coords corresponding to the mouse's position in the hilbert curve -- like we talked about in comments to #15.

Turns out FuncFormatter didn't work because that only takes a single value and you need both (x,y) simultaneously to calculate a genomic coord. The trick for good performance here was to use blitting (e.g. http://www.scipy.org/Cookbook/Matplotlib/Animations#head-3d51654b8306b1585664e7fe060a60fc76e5aa08)