private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
 {
     SP.MouseDown(e.X, e.Y);
     if (e.Button == MouseButtons.Middle)
     {
         SP.AxisAuto(Xs, Ys);
         UpdateGraph();
     }
 }