# Board index » cppbuilder » TeeChart Pro 4.0 - Contour Series Question

## TeeChart Pro 4.0 - Contour Series Question

I'm trying to use TeeChart Pro 4 VCL with BCB3. I would like to create a
2D contour plot where the x and y coordinates are the matrix indices and
the z value is given by the color on the contour. In addition I would
like to be able to display 2D points on top of this contour chart. Is
that possible?

Mike Lewis
--
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
& Michael R. Lewis         PHONE: (617) 738-1199               &
& PO BOX 15478             PAGER: (617) 216-3312               &
& Boston, MA 02215         EMAIL: mile...@bu.edu               &
&                            WWW: http://people.bu.edu/milewis &
&                          AOLIM: scarfacebu                   &
&                                                              &
& "Women are meant to be loved, not understood."               &
&                                             --Oscar Wilde    &
&                                                              &
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

## Re:TeeChart Pro 4.0 - Contour Series Question

##### Quote
>I'm trying to use TeeChart Pro 4 VCL with BCB3. I would like to create a
>2D contour plot where the x and y coordinates are the matrix indices and
>the z value is given by the color on the contour.

Yes, it is possible, but you have to do a little trick.

You need to set your Chart to the following parameters: (This way the
Contour series will look like 2D)

Chart1->View3DOptions->Orthogonal=false;
Chart1->View3DOptions->Rotation=360;
Chart1->View3DOptions->Elevation=270;
Chart1->View3DOptions->Perspective=0;
Chart1->LeftAxis->Visible=false;
Chart1->DepthAxis->Visible=true;

for (int x=0;x<10;x++) {
for (int z=0;z<10;z++) {
x and z needs to be

integer for the contour chart
}
}

##### Quote
>like to be able to display 2D points on top of this contour chart. Is
>that possible?

This is also posible, but with some restrictions (You can only plot
integers).

coordinates.

int z;
for (int x=0;x<10;x++) {
z=10.0*rand()/32768.0;
}

Good Luck!

--
Jorge E. Perez
jorg...@unm.edu

## Re:TeeChart Pro 4.0 - Contour Series Question

Thanks for the help, however there is no perspective setting in the
View3DOptions. If I just ignore the problem with the perspective then I get
something that looks mostly like I want, but it is very tiny in the window. Any
suggestions?

Thanks again,
Mike Lewis

##### Quote
"Jorge E. Perez" wrote:
> >I'm trying to use TeeChart Pro 4 VCL with BCB3. I would like to create a
> >2D contour plot where the x and y coordinates are the matrix indices and
> >the z value is given by the color on the contour.

> Yes, it is possible, but you have to do a little trick.

> You need to set your Chart to the following parameters: (This way the
> Contour series will look like 2D)

>     Chart1->View3DOptions->Orthogonal=false;
>     Chart1->View3DOptions->Rotation=360;
>     Chart1->View3DOptions->Elevation=270;
>     Chart1->View3DOptions->Perspective=0;
>     Chart1->LeftAxis->Visible=false;
>     Chart1->DepthAxis->Visible=true;

>     for (int x=0;x<10;x++) {
>         for (int z=0;z<10;z++) {
> x and z needs to be

> integer for the contour chart
>         }
>     }

> >like to be able to display 2D points on top of this contour chart. Is
> >that possible?

> This is also posible, but with some restrictions (You can only plot
> integers).

> Just add a 3DPoints series to your Chart and only add at the x and z
> coordinates.

>     int z;
>     for (int x=0;x<10;x++) {
>         z=10.0*rand()/32768.0;
>     }

> Good Luck!

> --
> Jorge E. Perez
> jorg...@unm.edu

--
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
& Michael R. Lewis         PHONE: (617) 738-1199               &
& PO BOX 15478             PAGER: (617) 216-3312               &
& Boston, MA 02215         EMAIL: mile...@bu.edu               &
&                            WWW: http://people.bu.edu/milewis &
&                          AOLIM: scarfacebu                   &
&                                                              &
& "Women are meant to be loved, not understood."               &
&                                             --Oscar Wilde    &
&                                                              &
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

## Re:TeeChart Pro 4.0 - Contour Series Question

##### Quote
>Thanks for the help, however there is no perspective setting in the
>View3DOptions.

What do you mean that there is not Perpective setting for the View3DOptions?
I am looking right at it inside the ObjectInspector.

What version of TeeChart Pro do you have?
I have 4.01

##### Quote
>something that looks mostly like I want, but it is very tiny in the window.
Any
>suggestions?

Increase the value of Chart3DPorcent, the default is like 15

Chart1->Chart3DPorcent=50;

--
Jorge E. Perez
jorg...@unm.edu

## Re:TeeChart Pro 4.0 - Contour Series Question

I definitely do not have a perspective setting. I believe I'm using version 4.0.
However, increasing the 3D percent does the trick. Thanks again for your help.

--Mike

##### Quote
"Jorge E. Perez" wrote:
> >Thanks for the help, however there is no perspective setting in the
> >View3DOptions.

> What do you mean that there is not Perpective setting for the View3DOptions?
> I am looking right at it inside the ObjectInspector.

> What version of TeeChart Pro do you have?
> I have 4.01

> >something that looks mostly like I want, but it is very tiny in the window.
> Any
> >suggestions?

> Increase the value of Chart3DPorcent, the default is like 15

> Chart1->Chart3DPorcent=50;

> --
> Jorge E. Perez
> jorg...@unm.edu

--
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
& Michael R. Lewis         PHONE: (617) 738-1199               &
& PO BOX 15478             PAGER: (617) 216-3312               &
& Boston, MA 02215         EMAIL: mile...@bu.edu               &
&                            WWW: http://people.bu.edu/milewis &
&                          AOLIM: scarfacebu                   &
&                                                              &
& "Women are meant to be loved, not understood."               &
&                                             --Oscar Wilde    &
&                                                              &
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&