title: C#: ZedGraph Show All Points of Zoomed Area
body: <p>I am plotting to my data to ZedGraph. Using <code>FileStream</code> to read files. Sometimes my data is greater than 200 megabyte. To draw this amount of data i should calculate peak values or must apply a window. However i want to see the all points of zoomed area. Please share any suggestion. </p>
  
  <pre><code>        PointPairList list1 = new PointPairList();
          int read;
          int count = 0;
          while (file.Position &lt; file.Length)
          {
              read = file.Read(mainBuffer, 0, mainBuffer.Length);
              for (int i = 0; i &lt; read / window; i++)
              {
                  list1.Add(count++, BitConverter.ToSingle(mainBuffer, i * window));
                  count++;
              }
          }
          myCurve1 = zgc.MasterPane.PaneList[1].AddCurve(null, list1, Color.Lime, SymbolType.None);
          myCurve1.IsX2Axis = true;
          zgc.MasterPane.PaneList[1].XAxis.Scale.MaxAuto = true;
          zgc.MasterPane.PaneList[1].XAxis.Scale.MinAuto = true;
          zgc.AxisChange();
          zgc.Invalidate();
  </code></pre>
  
  <p><code>window=2048</code> for file size between 100 megabyte to 300 megabyte. </p>