Why in ZedGraph the Y axis is very small ? the height of the bars are not as it suppose to be
<p>I have this ZedGraph control code:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ZedGraph;
using Extracting_Frames;

namespace Lightnings_Extractor
{
    public partial class Histogram_Graphs : Form
    {

        public long[] histogram;

        public Histogram_Graphs()
        {
            InitializeComponent();

            histogram = Form1.GetHistogramValue;
            this.DoubleBuffered = true;
            CreateGraph_GradientByZBars(zedGraphControl1);

        }

        private void Histogram_Graphs_Load(object sender, EventArgs e)
        {

        }

        private void CreateGraph_GradientByZBars(ZedGraphControl z1)
        {
            GraphPane myPane = z1.GraphPane;
            myPane.Title.Text = "Demonstration of Multi-Colored Bars with a Single BarItem";
            myPane.XAxis.Title.Text = "Bar Number";
            myPane.YAxis.Title.Text = "Value";

            PointPairList list = new PointPairList();
            Random rand = new Random();

            for (int i = 0; i &lt; histogram.Length; i++)
            {
                double x = (double)i + 1;
                //double y = (double)i + 1;//rand.NextDouble() * 1000;
                double z = i / 4.0;
                list.Add(x, histogram[i], z);
            }

            BarItem myCurve = myPane.AddBar("Multi-Colored Bars", list, Color.Blue);
            Color[] colors = { Color.Red, Color.Yellow, Color.Green, Color.Blue, Color.Purple };
            myCurve.Bar.Fill = new Fill(colors);
            myCurve.Bar.Fill.Type = FillType.GradientByZ;

            myCurve.Bar.Fill.RangeMin = 0;
            myCurve.Bar.Fill.RangeMax = 4;

            myPane.Chart.Fill = new Fill(Color.White, Color.FromArgb(220, 220, 255), 45);
            myPane.Fill = new Fill(Color.White, Color.FromArgb(255, 255, 225), 45);
            // Tell ZedGraph to calculate the axis ranges
            z1.AxisChange();
        } 
    }
}
</code></pre>

<p>The problem is in the loop:</p>

<pre><code>for (int i = 0; i &lt; histogram.Length; i++)
                {
                    double x = (double)i + 1;
                    //double y = (double)i + 1;//rand.NextDouble() * 1000;
                    double z = i / 4.0;
                    list.Add(x, histogram[i], z);
                }
</code></pre>

<p>Befote Y was random. Now i want to use the values in the histogram List.
So for example in index[0] there is a number: 34118 then in index<a href="http://i.stack.imgur.com/L54q5.jpg" rel="nofollow">1</a> 1521 index[2] 522
There are 256 indexs in the List.</p>

<p>When i see the Graph is see the bard height very very short. </p>

<p>In the beginning of the graph i see one line very high but all the next lines are very short.
And on the Y axis i see on the side numbers start from 0 to 40 and on the x axis i see numbers from 0 to 300.</p>

<p>On the axis Y i should see numbers from 0 to the highest value in the histogram i guess and on the axis X i should see from 0 to 256.</p>

<p>Big mess here.</p>

<p>How should i fix it ?</p>

<p>Thanks.</p>

<p><img src="http://i.stack.imgur.com/L54q5.jpg" alt="enter image description here"></p>
