Page 1 of 1
HOW TO CHANGE THE X AXIS SCALE OF TSurfaceSeries!
Posted: Tue Dec 12, 2006 1:57 am
by 9348298
When I draw Vector 3D with TSurfaceSeries(DEIPHI 7.0, TCHART7.07), the X axis scale should be input with the continues num, such as 0, 1, 2…and so on, or the picture can’t be drawled. But I want to set the X axis scale as 50,100,150… How to settle this problem? Thank you!
Posted: Tue Dec 12, 2006 9:26 am
by narcis
Hi hexfhhu,
Have you read
Tutorial 4 - Axis Control on how to set axes? You'll find the tutorials at TeeChart's program group.
If the problem persists please send us a simple example project we can run "as-is" to reproduce the problem here.
You can post your files at news://
www.steema.net/steema.public.attachments newsgroup.
Thanks in advance.
Posted: Tue Dec 12, 2006 2:38 pm
by narcis
Hi hexfhhu,
We have received your example code:
Code: Select all
{ When I draw Vector 3D with TSurfaceSeries(DEIPHI 7.0, TCHART7.07), the X axis scale should be input with the continues num, or the picture can’t be drawled.
For example:
When I input the follow code : }
series1.addxyz(0,0.5,0);
series1.addxyz(1,0.5,0);
series1.addxyz(2,0.5,0);
series1.addxyz(0,0.6,1);
series1.addxyz(1,0.6,1);
series1.addxyz(2,0.6,1);
series1.addxyz(0,0.75,2);
series1.addxyz(1,0.75,2);
series1.addxyz(2,0.75,2);
{ The 3D can be drawled. But when I input the follow code: }
series1.addxyz(0,0.5,0);
series1.addxyz(10,0.5,0);
series1.addxyz(25,0.5,0);
series1.addxyz(0,0.6,1);
series1.addxyz(10,0.6,1);
series1.addxyz(25,0.6,1);
series1.addxyz(0,0.75,2);
series1.addxyz(10,0.75,2);
series1.addxyz(25,0.75,2);
{ the 3D can be drawled. How to cure this problem? Thank you!}
The second set of data is not displayed because you need to set IrregularGrid property to true before populating your series:
This is necessary when X and Z intervals are not equidistant, different than one or their values are negative.