#include <multiplot.h>
Public Methods | |
MULTIPLOT (int x, int y, int w, int h, const char *title="MULTIPLOT-updates on www.andre-krause.net") | |
void | add (unsigned int trace, const PLOT_POINT &p) |
void | set_max_points (int mx) |
void | set_scrolling (int max_points_to_plot) |
void | set_grid (int gridx, int gridy, float gridx_step=-1, float gridy_step=-1) |
|
this constructor tells multiplot where to put the window on the desktop in pixel-coordinates(x,y) and with wich width and height (w,h) |
|
with this function you cann add a plot-points to a trace. traces are numbered from zero to N. memory for the traces is automatically allocated. |
|
call this function if you wish a grid to be plotted in your graph. by default, no grids are plotted. call this function with the first two arguments set to either MP_NO_GRID, MP_LINEAR_GRID or MP_LOG_GRID. the next two arguments gridx_step and gridy_step specify the grid spacing. Zero or a negative value like -1 enables auto - spacing. |
|
set the maximum number of points to be plotted. this is useful to avoid slow drawing of your trace. if you have 1000 plot-points and set the number of max_points to 100, then only every tenth point gets plotted. |
|
if you call set_scrolling with a positive number of points to be plotted, your graph will scroll left out of the plot-window as you add new plot-points. Zero or a negative number disables scrolling. |