Hi,
I try to transpose the contour chart with 1024 x 1024 data and I am getting memory out of exception.
I also tried it with sample data provided by Tchart method FillSampleValues and use the tool for Contour but could not see any effect.
then I tried on the Fastline series but still no change in the result in display.
So can we apply series transpose tool for Contour?
If I apply second time the application crashes with unknown reason.
Can you please help in above scenarios as early as possible?
Regards,
Ripal
series transpose tool for Contour
Re: series transpose tool for Contour
Hello Ripal,
If you want to add a Transpose tool you needs to know that there are two ways to get Transpose tool.
The firts: When you use simple series that only there are (x,y) values for example bar,line,fastline,etc, you needs SeriesTranspose Tool. You can find examples in the All Features\Welcome !\Tools\Transpose Series.
Second: When you use Surface, Contour, etc. You need 3DTranspose (GridTranspose Tool), because this series there are (x,y,z) values. You can find examples in the All Features\Welcome !\Tools\3D Transpose.
On the other hand, I made a simple example using a contour series and 3DTranspose. See next code and please check that works fine in your application:
I hope will helsp.
Thanks,
If you want to add a Transpose tool you needs to know that there are two ways to get Transpose tool.
The firts: When you use simple series that only there are (x,y) values for example bar,line,fastline,etc, you needs SeriesTranspose Tool. You can find examples in the All Features\Welcome !\Tools\Transpose Series.
Second: When you use Surface, Contour, etc. You need 3DTranspose (GridTranspose Tool), because this series there are (x,y,z) values. You can find examples in the All Features\Welcome !\Tools\3D Transpose.
On the other hand, I made a simple example using a contour series and 3DTranspose. See next code and please check that works fine in your application:
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
Steema.TeeChart.Styles.Contour contour1;
Steema.TeeChart.Tools.GridTranspose gridTranspose1;
private void InitializeChart()
{
chartController1.Chart = tChart1;
contour1 = new Steema.TeeChart.Styles.Contour(tChart1.Chart);
gridTranspose1 = new Steema.TeeChart.Tools.GridTranspose(tChart1.Chart);
double y;
for (int x = 0; x < 20; x++)
for (int z = 0; z < 30; z++)
{
y = 0.5 * Math.Pow(Math.Cos(x * 0.25), 2) +
Math.Pow(Math.Cos(z / 15.0), 2) -
Math.Cos(z / 15.0);
this.contour1.Add(x, y, z);
}
this.tChart1.Axes.Depth.Visible = true;
this.tChart1.Legend.Visible = false;
this.contour1.UseColorRange = false;
this.contour1.UsePalette = true;
gridTranspose1.Series = contour1;
}
private void button1_Click(object sender, EventArgs e)
{
gridTranspose1.Transpose();
}
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |