XYPlot Object Class


Overview

A Chart Object creates a Plot object of type XYPlot when the chart type resource is set to XintCHART_TYPE_AREA, XintCHART_TYPE_LINE or XintCHART_TYPE_SCATTERED.

Data

The XYPlot object class accepts DataSampled or DataSeries objects for data. DataSampled objects are plotted along the X axis.

If Chart resource XmNtranspose is False, a Polyline series is created for each DataSampled object. If XmNtranspose if True, a Polyline series is created for each sample (number of points in the Polyline series is equal to the number of DataSampled objects). Transposition has no effect on DataSeries objects.


Inherited Behavior and Resources

The XYPlot object class inherits behavior and resources from the Xt Object, Graphic, Group and Plot2D object classes.
The following resources are defined by the XYPlot object class:
NameTypeDefaultAccess
XmNplotOrientationintXintVERTICALCSG
XmNsymbolBooleandynamicCSG
XmNsymbolSizeint8CSG
XmNstackingOrderintXintFRONT_TO_BACKCSG


XmNplotOrientation

Specifies the orientation of the plot.

Resource ValueDescription
XintVERTICAL (default)The X axis is plotted along the horizontal direction and the Y axis along the vertical direction.
XintHORIZONTALThe X axis is plotted along the vertical direction and the Y axis along the horizontal direction.


XmNsymbol

Specifies whether or not a symbol is displayed at each point location. The default for this resource is True for scattered plots and False otherwise. See Chart resource XmNsymbolList to see how symbols are assigned by default.

XmNsymbolSize

Specifies the size of the symbol in pixels.

XmNstackingOrder

Specifies the stacking order if multiple series are displayed. This resource is useful for area plots where the order in which the series are drawn is important. See also EditObject functions XintEditObjectRaise, XintEditObjectLower, XintEditObjectBack and XintEditObjectFront to control the stacking order on a object by object basis. You can specify the following constants for this resource:

Resource ValueDescription
XintFRONT_TO_BACK (default)Series are painted from first one specified to the last one.
XintBACK_TO_FRONTSeries are painted from the last one specified to the first one.


Inherited Resources

See section Plot2D Object Class for a complete listing of the inherited resources for the XYPlot object class.

Macro

Macro XintIsXYPlot returns True if the specified object is a XYPlot object.

     Boolean XintIsXYPlot (Object object)


XYPlot Series

The XYPlot object class displays its data using PolySeries objects. The following is a list of the resources for this class. See classes
Graphic MultiPoint and Polyline for a complete description of these resources.

PolySeries Resources
NameTypeDefaultAccess
XmNcolorPixelassigned from color listCSG
XmNdashListchar *NULLCSG
XmNdrawSymbolCallbackXtCallbackListNULLC
XmNfillColorPixelassigned from color listCSG
XmNfillFilenamechar *NULLCSG
XmNfillPixmapPixmapNULLCSG
XmNfillStyleintdynamicCSG
XmNlineStyleintdynamicCSG
XmNlineThicknessint1CSG
XmNsensitiveBooleanTrueCSG
XmNstippleColorPixel"black"CSG
XmNsymbolBooleandynamicCSG
XmNsymbolColorPixelassigned from color listCSG
XmNsymbolSizeint88CSG
XmNsymbolTypeintassigned from symbol listCSG