The "graph1d" Package
These routines are meant to provide a high level mechanism to graph a
1-dimensional array of values.
Library: karmagraphics
Link With: -lkarmagraphics
Functions
Functions
EXPERIMENTAL FUNCTION: subject to change without notice
void
graph1d_lines (KWorldCanvas canvas,
unsigned int num_points, CONST double *x, CONST double *y,
unsigned long pixel_value,
unsigned int num_pixels, unsigned long *pixel_values)
Plot a 1-dimensional graph by connecting the vertices.
Parameters:
- canvas :
The world canvas to draw to.
- num_points :
The number of data points to plot.
- x :
The array of horizontal world co-ordinates. These must be in left to
right order. If this is NULL, the routine assumes the horizontal
co-ordinates are equally spaced across the world canvas.
- y :
The array of vertical world co-ordinates.
- pixel_value :
The pixel value to draw with.
- num_pixels :
The number of pixels values. If this is 0, pixel_value is
used instead.
- pixel_values :
The array of pixel values.
Returns: Nothing.
Multithreading Level: Unsafe
EXPERIMENTAL FUNCTION: subject to change without notice
void
graph1d_steps (KWorldCanvas canvas,
unsigned int num_points, CONST double *x, CONST double *y,
unsigned long pixel_value,
unsigned int num_pixels, unsigned long *pixel_values)
Plot a 1-dimensional graph by drawing steps.
Parameters:
- canvas :
The world canvas to draw to.
- num_points :
The number of data points to plot.
- x :
The array of horizontal world co-ordinates. These must be in left to
right order. If this is NULL, the routine assumes the horizontal
co-ordinates are equally spaced across the world canvas.
- y :
The array of vertical world co-ordinates.
- pixel_value :
The pixel value to draw with.
- num_pixels :
The number of pixels values. If this is 0, pixel_value is
used instead.
- pixel_values :
The array of pixel values.
Returns: Nothing.
Multithreading Level: Unsafe
EXPERIMENTAL FUNCTION: subject to change without notice
void
graph1d_points (KWorldCanvas canvas,
unsigned int num_points, CONST double *x, CONST double *y,
unsigned long pixel_value)
Plot a 1-dimensional graph by drawing crosses.
Parameters:
- canvas :
The world canvas to draw to.
- num_points :
The number of data points to plot.
- x :
The array of horizontal world co-ordinates. If this is NULL, the
routine assumes the horizontal co-ordinates are equally spaced across the
world canvas.
- y :
The array of vertical world co-ordinates.
- pixel_value :
The pixel value to draw with.
Returns: Nothing.
Multithreading Level: Unsafe
Back to Karma Home Page
Contact: Richard Gooch
Web Development: Ariel Internet Services