#include <multiplot.h>
|
unsigned int | max_points_to_plot = std::numeric_limits<unsigned int>::max() |
|
bool | scroll = false |
|
unsigned int | pos = 0 |
|
float | cur_col [3] { 1.0f, 1.0f, 1.0f } |
|
float | cur_line_width = 1.0f |
|
float | cur_point_size = 0.0f |
|
class Trace describes a single Trace. A Multiplot-Window can contain an unlimited number of Traces.
◆ clear()
void multiplot::Multiplot::Trace::clear |
( |
| ) |
|
|
inline |
clear() removes all points from the trace. the trace is empty afterwards and can be filled with plot(x,y) again.
◆ color3f()
void multiplot::Multiplot::Trace::color3f |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
|
inline |
sets the current drawing color in rgb format. r,g,b are in the range [0..1]
◆ linewidth()
void multiplot::Multiplot::Trace::linewidth |
( |
float |
width | ) |
|
|
inline |
call linewidth to change the thickness of the traces. the default value is 1 pixel, if you set the linewidth to zero, no lines are drawn. this is usefull to create scatter-plots.
◆ plot()
void multiplot::Multiplot::Trace::plot |
( |
const float |
x, |
|
|
const float |
y |
|
) |
| |
|
inline |
plot a point at (x,y) to the currently active trace. you may switch the trace with a call to trace(int _trace)
◆ pointsize()
void multiplot::Multiplot::Trace::pointsize |
( |
float |
psize | ) |
|
|
inline |
this function sets the size of the plot-points. the default value is zero, so no points are drawn at all. if you wish to create a scatter-plot, set the pointsize to a value bigger than zero and the linesize to zero.
◆ scrolling()
void multiplot::Multiplot::Trace::scrolling |
( |
int |
number_of_points_to_plot_ | ) |
|
|
inline |
if you call 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 beyond number_of_points_to_plot_. Zero or a negative number disables scrolling.
The documentation for this class was generated from the following file: