Plot2d
 All Classes Functions
Public Member Functions | List of all members
nana::plot::plot Class Reference

Draw a 2D plot. More...

#include <plot2d.h>

Public Member Functions

 plot (window parent)
 
traceAddStaticTrace ()
 Add static trace. More...
 
traceAddRealTimeTrace (int w)
 Add real time trace. More...
 
traceAddPointTrace ()
 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 ()
 

Detailed Description

Draw a 2D plot.

Constructor & Destructor Documentation

nana::plot::plot::plot ( window  parent)

CTOR

Parameters
inparent window where plot will be drawn

Member Function Documentation

trace & nana::plot::plot::AddPointTrace ( )

Add point trace.

Returns
reference to new trace

A static trace for scatter plots ( no line between points )

trace& nana::plot::plot::AddRealTimeTrace ( int  w)
inline

Add real time trace.

Parameters
[in]wnumber of recent data points to display
Returns
reference to new trace

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.

trace& nana::plot::plot::AddStaticTrace ( )
inline

Add static trace.

Returns
reference to new trace

The data in a static trace does not change A line is drawn between successive points


The documentation for this class was generated from the following files: