GooData Reference Manual | ||||
---|---|---|---|---|
Top | Description |
GooSimpleCurve2dGooSimpleCurve2d — a simple curve scaled by at least one GooAxis. |
struct GooSimplecurve2d; struct GooSimplecurve2dClass;GooCanvasItem * goo_simplecurve2d_new (,
GooCanvasItem *ParentGooAxis *AxisX
,GooAxis *AxisY
,GooDataPoints *Dat
,,
guint ChX,
guint ChY...
);
GooSimplecurve2d is a subclass of goo_canvas_item_raise()
goo_canvas_item_rotate()
To create a GooSimplecurve2d use goo_simplecurve2d_new()
.
The position and the scale of the curve are connected to the GooAxis for X-
and Y direction. Also the transformation matrix of the GooAxis is applied to
the GooCurve2d. Note: it's not supported to move the GooAxis
after creating the GooSimplecurve2d. Instead put the background box,
the GooAxis and the
GooSimplecurve2d in to a
In contrast to the GooCurve2d the GooSimplecurve2d doesn't support smooth lines, markers, error-markers, areas, perpendiculars or vectors. It's just a straight line between some points. But it's faster and it consumes less memory, so it should be prefered when you have to draw a huge amount of of points.
struct GooSimplecurve2d;
The
struct GooSimplecurve2dClass;
The
GooCanvasItem * goo_simplecurve2d_new (,
GooCanvasItem *ParentGooAxis *AxisX
,GooAxis *AxisY
,GooDataPoints *Dat
,,
guint ChX,
guint ChY...
);
Creates a new simple curve item.
The simple curve does support points scaled by one or two axis. If you need smooth lines, markers, error-markers, areas, perpendiculars or vectors, have a look at GooCurve2d.
To draw points only (and omit the lines between the points) a line
dash has to be set. It have to have exact two entries, the first is 0.0
and the second is greater than the sum of both axis length (the
height + width of the background box). Use
CAIRO_LINE_CAP_ROUND
CAIRO_LINE_CAP_SQUARE
|
the parent item, or NULL g_object_unref() |
|
the X axis to scale the data |
|
the Y axis to scale the data |
|
the data values to draw with |
|
the channel number for X values in Dat
|
|
the channel number for Y values in Dat
|
|
optional pairs of property names and values, and a terminating NULL |
Returns : |
a new Simplecurve2d item. [transfer full] |
Since 0.0