arq5x / scurgen

A tool for detecting patterns in genomic data with space filling curves
9 stars 4 forks source link

text box showing corresponding genomic coords of mouse position in matrix #18

Closed daler closed 11 years ago

daler commented 11 years ago

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)