Closed daler closed 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)
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)