twins and twiny both handle zoom and pan correctly

various changes to make the zoom and pan work correctly for both twinx
and twiny