Class XppXYPlot

 XppWindow 
   |
   +---- XppCanvas 
           |
           +----XppXYPlot

Description:
A window to draw simple x-y plots.

Source code:
XppXYPlot.h
XppXYPlot.c

Examples:

XppXYPlot(int width, int height, int x=0, int y=0, char *name = "xyplot");
Create an x-y plot window on the root window at position (x,y) with the specified width and height and name. If either x or y is negative then the plot must be positioned on the root window using the mouse.

XppXYPlot(XppWindow& win, int width, int height, int x = 0, int y = 0);
Create a child x-y plot window within the parent window win at the relative position (x,y) with width w and height h.

void SetStyleDots(void);
Plot each data point with a dot.
void SetStyleLines(void);
Plot with lines between adjacent data points. This is the default plotting style.

void Plot(double x, double y);
Plot point (x, y)
void Plot(double *y, int n);
Plot points ( i, y[i] ), ... 0 <= i < n.
void Plot(double *x, double *y, int n);
Plot points ( x[i], y[i] ), ... 0 <= i < n

void Reset(void);
Reset plot to plot a new curve


Copyright (c) 1995 Leslie Picardo
All rights reserved