TiPlotAxis.CartesianStyle

TiPlotAxis

Specifies the Cartesian Style of the Axis..

type TiPlotCartesianStyle = (ipcsNone, ipcsMaster, ipcsChild);

property CartesianStyle : TiPlotCartesianStyle;

Description

Use CartesianStyle to get or set the Cartesian Style of the Axis. See full example below.

These are the possible values:

Value
Meaning
ipcsNone
This style formats the axis as a non-cartesian style axis that is placed along the edge of the DataView. This is the default setting and represents the original axis style of the Plot Components.
ipcsMaster
This style formats the axis as a master cartesian axis. There must be one axis that has the ipcsMaster style set. A master cartesian axis is centered along perpendicular sides of the DataView.
ipcsChild
This style formats the axis as a child cartesian axis. A child cartesian axis is positioned perpendicular to the opposite axis type specified by the CartesianChildRefAxisName property, and the position is specified by the CartesianChildRefValue property of the child cartesian axis.

Example: Single Non-Cartesian X-Axis and Y-Axis

Cartesian-None.gif

Delphi

//Setup Standard X-Axis

iComponent.XAxis[0].Min := 0;

iComponent.XAxis[0].Span := 100;

iComponent.XAxis[0].CartesianStyle := ipcsNone;

//Setup Standard Y-Axis

iComponent.YAxis[0].Min := 0;

iComponent.YAxis[0].Span := 100;

iComponent.YAxis[0].CartesianStyle := ipcsNone;

C++ Builder

//Setup Standard X-Axis

iComponent->XAxis[0]->Min = 0;

iComponent->XAxis[0]->Span = 100;

iComponent->XAxis[0]->CartesianStyle = ipcsNone;

//Setup Standard Y-Axis

iComponent->YAxis[0]->Min = 0;

iComponent->YAxis[0]->Span = 100;

iComponent->YAxis[0]->CartesianStyle = ipcsNone;

Example:
Single Cartesian X-Axis and Y-Axis

Cartesian-2Master.gif

Delphi

//Setup Master X-Axis

iComponent.XAxis[0].Min := -50;

iComponent.XAxis[0].Span := 100;

iComponent.XAxis[0].CartesianStyle := ipcsMaster;

//Setup Master Y-Axis

iComponent.YAxis[0].Min := -50;

iComponent.YAxis[0].Span := 100;

iComponent.YAxis[0].CartesianStyle := ipcsMaster;

C++ Builder

//Setup Master X-Axis

iComponent->XAxis[0]->Min = -50;

iComponent->XAxis[0]->Span = 100;

iComponent->XAxis[0]->CartesianStyle = ipcsMaster;

//Setup Master Y-Axis

iComponent->YAxis[0]->Min = -50;

iComponent->YAxis[0]->Span = 100;

iComponent->YAxis[0]->CartesianStyle = ipcsMaster;

Example:
Multiple X-Axes and Y-Axes

Cartesian-2Master2Child.gif

Delphi

//Setup Master X-Axis

iComponent.XAxis[0].Min := -50;

iComponent.XAxis[0].Span := 100;

iComponent.XAxis[0].CartesianStyle := ipcsMaster;

//Setup Master Y-Axis

iComponent.YAxis[0].Min := -50;

iComponent.YAxis[0].Span := 100;

iComponent.YAxis[0].CartesianStyle := ipcsMaster;

//Setup Child X-Axis (Teal-Colored)

iComponent.XAxis[1].Min := -50;

iComponent.XAxis[1].Span := 100;

iComponent.XAxis[1].CartesianStyle := ipcsChild;

iComponent.XAxis[1].CartesianChildRefAxisName := iComponent.YAxis[0].Name;

iComponent.XAxis[1].CartesianChildRefValue := 25;

//Setup Child Y-Axis (Yellow-Colored)

iComponent.YAxis[1].Min := -50;

iComponent.YAxis[1].Span := 100;

iComponent.YAxis[1].CartesianStyle := ipcsChild;

iComponent.YAxis[1].CartesianChildRefAxisName := iComponent.XAxis[0].Name;

iComponent.YAxis[1].CartesianChildRefValue := 35;

C++ Builder

//Setup Master X-Axis

iComponent->XAxis[0]->Min = -50;

iComponent->XAxis[0]->Span = 100;

iComponent->XAxis[0]->CartesianStyle = ipcsMaster;

//Setup Master Y-Axis

iComponent->YAxis[0]->Min = -50;

iComponent->YAxis[0]->Span = 100;

iComponent->YAxis[0]->CartesianStyle = ipcsMaster;

//Setup Child X-Axis (Teal-Colored)

iComponent->XAxis[1]->Min = -50;

iComponent->XAxis[1]->Span = 100;

iComponent->XAxis[1]->CartesianStyle = ipcsChild;

iComponent->XAxis[1]->CartesianChildRefAxisName = iComponent->YAxis[0]->Name;

iComponent->XAxis[1]->CartesianChildRefValue = 25;

//Setup Child Y-Axis (Yellow-Colored)

iComponent->YAxis[1]->Min = -50;

iComponent->YAxis[1]->Span = 100;

iComponent->YAxis[1]->CartesianStyle = ipcsChild;

iComponent->YAxis[1]->CartesianChildRefAxisName = iComponent->XAxis[0]->Name;

iComponent->YAxis[1]->CartesianChildRefValue = 35;

Contents | Index | Previous | Next