1 This library provides KPlotWidget and KPlotObject classes.
3 KPlotWidget is a QWidget-derived class that provides a virtual baseclass
4 for easy data-plotting. The idea behind KPlotWidget is that you only have
5 to specify information in "data units"; i.e., the natural units of the
6 data being plotted. KPlotWidget automatically converts everything
9 KPlotWidget draws X and Y axes with tickmarks and tick labels. It
10 automatically determines how many tickmarks to use and where they should
11 be, based on the data limits specified for the plot. You change the limits
12 by calling setLimits( double x1, double x2, double y1, double y2 ), and
13 then calling updateTickmarks() to recompute the positions of tickmarks
16 Data to be plotted are stored using the KPlotObject class. KPlotObject
17 consists of a QPtrList of DPoints, each specifying the X,Y coordinates
18 of a data point (DPoint is like QPoint, but the X and Y values are doubles
19 instead of ints). KPlotObject also specifies the "type" of data to be
20 plotted (POINTS or CURVE or POLYGON or LABEL).