Draw a 2D plot. More...
#include <plot2d.h>
Public Member Functions | |
| plot (window parent) | |
| trace & | AddStaticTrace () |
| Add static trace. More... | |
| trace & | AddRealTimeTrace (int w) |
| Add real time trace. More... | |
| trace & | AddPointTrace () |
| Add point trace. More... | |
| int | Y2Pixel (double y) const |
| float | xinc () |
| int | minY () |
| int | maxY () |
| double | Scale () |
| int | XOffset () |
| int | YOffset () |
| window | parent () |
| void | update () |
| void | debug () |
Draw a 2D plot.
| nana::plot::plot::plot | ( | window | parent | ) |
CTOR
| in | parent window where plot will be drawn |
| trace & nana::plot::plot::AddPointTrace | ( | ) |
Add point trace.
A static trace for scatter plots ( no line between points )
|
inline |
Add real time trace.
| [in] | w | number of recent data points to display |
The data in a real time trace receives new values from time to time The display shows w recent values. Older values scroll off the left hand side of the plot and disappear.
|
inline |
Add static trace.
The data in a static trace does not change A line is drawn between successive points
1.8.6