Populating contour, filled levels
Posted: Fri Jan 23, 2009 12:45 am
I'm trying to use contour with filled levels in winforms using VS2008
Using contour.Add(double X, double Y, double Z), chart does not display the data.
When using contour.FillSampleValues(10) the chart displays the sample data, but I don't have the source code and can't step into this function to see how it populates the series.
namespace Test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
//contour1.FillSampleValues(10);
}
private void button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
contour1.Add((double)j, (double)i/10, (double)i);
}
}
}
}
}
Using contour.Add(double X, double Y, double Z), chart does not display the data.
When using contour.FillSampleValues(10) the chart displays the sample data, but I don't have the source code and can't step into this function to see how it populates the series.
namespace Test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
//contour1.FillSampleValues(10);
}
private void button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
contour1.Add((double)j, (double)i/10, (double)i);
}
}
}
}
}