public void Zoom(PoincareMap map, Point pixel1, Point pixel2)
            {
                var data1 = PixelToData(pixel1);
                var data2 = PixelToData(pixel2);

                Zoom(map, data1.X, data2.X, data1.Y, data2.Y);
            }
 private void Zoom(PoincareMap map, double dataX1, double dataX2, double dataY1, double dataY2)
 {
     tx.Add(new LinearTransform(dataX1, dataX2, 0, map.PixelWidth - 1));
     ty.Add(new LinearTransform(dataY1, dataY2, 0, map.PixelHeight - 1));
 }
 public void Init(PoincareMap map)
 {
     tx.Clear();
     ty.Clear();
     Zoom(map, -map.Data.Q1Max, map.Data.Q1Max, map.Data.L1Max, -map.Data.L1Max);
 }