hello,

here is a very basic problem; I want to plot y=cos(x) with x from -PI toPI and so y from -1 to 1

I must be **stupid** as I didn't find the way to do this !!!!!

I can only plot y with numbers on the X scale, not the real values of X. I want to see floating numbers on the X axis, like "3.12" or "0.9".

Is there some sample code to demonstrate this ?

I didn't find anything in the manual.

From many years I used the TCharts vcl. It was very easy to plot XY series.

thanks for help

Dear Mr. Verwaerde,

We have uploaded a sample that demonstrates how this can be achieved.

Kind Regards,

Pieter

Thanks for the demo code, which works well.

I get 2 axis scales, the one up with counts, the second below with float values.

If I want to get rid of the count axis, the only way I found to do it, is to use the OnXAxisDrawValue function.

I have to point out that it's rather complicate to achieve a simple xy plotting if the x values are not counts or seconds.

This is the reason why I shall not use the advchart vcl for scientific data plotting.

Good job but not suitable for my application.

regards

I have same problem with 2 axis, would you share the solution. Uper one is x values inserted with addsingleXYpoint but lover just counts number of points 0,1,2,3....

Hi,

You can disable the lower values with AdvGDIPChartView1.Panes[0].Series[0].XAxis.XYValues := False;

Kind Regards,

Pieter