update heatmap to use sample annotations

add back panning (which was dropped from an earlier commit somehow)

fix bugs in rendering legend -- note that vertical legend is not supported