The Chart object creates two additional sets of axes (two vertical axes and two horizontal axes) that are used to provide annotation for the plot and to define the user coordinate system. Function XintChartGetComponent lets you access the ID of one of the horizontal axes and one of the vertical axes. The axes in each set are synchronized, so when one is modified the other one is automatically updated. See Plot2D resources XmNxAxisPlacement and XmNyAxisPlacement to control which axes are visible.
The resources listed below can be used to customize the appearance of the axis objects.
| Name | Type | Default | Access |
|---|---|---|---|
| XmNannotationAngle | int | 0 | CSG |
| XmNannotationFont | String | "*-Helvetica*-120-*" | CSG |
| XmNannotationFormat | String | "%g" | CSG |
| XmNannotationPlacement | int | XintANNOTATION_OUTSIDE | CSG |
| XmNaxisLineThickness | int | 2 | CSG |
| XmNendPoints | XintEndPoints * | {10., 10., 90., 90.} | CSG |
| XmNincrements | XintIncrements * | {20., 10.} | CSG |
| XmNlabel | String | NULL | CSG |
| XmNlabelFont | String | "*-Helvetica*-140-*" | CSG |
| XmNlimits | XintLimits * | {0., 100.} | CSG |
| XmNlogScale | Boolean | False | CSG |
| XmNmajorGridLineStyle | int | XintLINE_NONE | CSG |
| XmNminorGridLineStyle | int | XintLINE_NONE | CSG |
| XmNreverseOrder | Boolean | False | CSG |
| XmNtickPlacement | int | XintTICK_OUTSIDE | CSG |
| Resource Value | Description |
|---|---|
| XintANNOTATION_NONE | No annotation is displayed. |
| XintANNOTATION_INSIDE | Annotation is displayed inside the plot area. |
| XintANNOTATION_OUTSIDE (default) | Annotation is displayed outside the plot area. |
| XintANNOTATION_CROSS | Annotation is displayed on both sides. |
typedef struct {
float x1, y1;
float x2, y2;
} XintEndPoints;
This resource is automatically set for an Axis object that is used inside a Chart object.
typedef struct {
float major_increment;
float minor_increment;
} XintIncrements;
This resource should not be set directly for an Axis object created inside a Chart object. Use Plot2D resources XmNxIncrements and XmNyIncrements instead.
typedef struct {
float minimum;
float maximum;
} XintLimits;
This resource should not be set directly for an Axis object created inside a Chart object. Use Plot2D resources XmNxLimits and XmNyLimits instead.
| Resource Value | Description |
|---|---|
| XintLINE_NONE (default) | No grid lines are drawn. |
| XintLINE_SOLID | Grid lines are drawn using a solid line. |
| XintLINE_ON_OFF_DASH | Grid lines are drawn using a on-off dash pattern |
| XintLINE_DOUBLE_DASH | Grid lines are drawn using a double dashed patterns. |
| Resource Value | Description |
|---|---|
| XintTICK_NONE | No tick marks are displayed. |
| XintTICK_INSIDE | Tick marks are displayed inside the plot area. |
| XintTICK_OUTSIDE (default) | Tick marks are displayed outside the plot area. |
| XintTICK_CROSS | Tick marks are displayed on both sides. |
| Name | Type | Default | Access |
|---|---|---|---|
| XmNcolor | Pixel | foreground | CSG |
| XmNdashList | char * | NULL | CSG |
| XmNfont | char * | "Helvetica*120*" | CSG |
| XmNhighlightMode | int | XintHIGHLIGHT_HANDLE | CSG |
| XmNlineStyle | int | XintLINE_SOLID | CSG |
| XmNlineThickness | int | 1 | CSG |
| XmNmove | Boolean | True | CSG |
| XmNsensitive | Boolean | True | CSG |
| XmNshape | Boolean | True | CSG |
| XmNstippleColor | Pixel | foreground | CSG |
Boolean XintAxisObjectUserToPixel (...)
| Object | axis | ID of the Axis object. |
| double | user_coordinate | User coordinate to convert to a pixel location. |
| int * | pixel | Returns the pixel location corresponding to user_coordinate. |
Boolean XintAxisObjectPixelToUser (...)
| Object | axis | ID of the Axis object. |
| int | pixel | Pixel coordinate to convert. |
| float * | user_coordinate | Returns the user coordinate corresponding to pixel. |
Boolean XintIsAxisObject (Object object)