Robowflex
v0.1
Making MoveIt Easy
|
Helper class to open a pipe to a GNUPlot instance for live visualization of data. More...
#include <gnuplot.h>
Classes | |
struct | BoxPlotOptions |
Box plotting options. More... | |
class | Instance |
struct | PlottingOptions |
struct | TimeSeriesOptions |
Time series plotting options. More... | |
Public Types | |
using | Point = std::pair< double, double > |
using | Series = std::vector< Point > |
using | Values = std::vector< double > |
Public Member Functions | |
GNUPlotHelper ()=default | |
GNUPlotHelper (GNUPlotHelper const &)=delete | |
void | operator= (GNUPlotHelper const &)=delete |
Plotting | |
void | configurePlot (const PlottingOptions &options) |
Configure a plot using common options. More... | |
void | timeseries (const TimeSeriesOptions &options) |
Plot timeseries data. More... | |
void | boxplot (const BoxPlotOptions &options) |
Plot box data. More... | |
Private Member Functions | |
std::shared_ptr< Instance > | getInstance (const std::string &name) |
Get the named GNUPlot instance. More... | |
Private Attributes | |
std::map< std::string, std::shared_ptr< Instance > > | instances_ |
Map of open GNUPlot instances. More... | |
Helper class to open a pipe to a GNUPlot instance for live visualization of data.
using robowflex::IO::GNUPlotHelper::Point = std::pair<double, double> |
using robowflex::IO::GNUPlotHelper::Values = std::vector<double> |
|
default |
|
delete |
void GNUPlotHelper::boxplot | ( | const BoxPlotOptions & | options | ) |
Plot box data.
[in] | options | Plotting options. |
Definition at line 112 of file gnuplot.cpp.
void GNUPlotHelper::configurePlot | ( | const PlottingOptions & | options | ) |
Configure a plot using common options.
Definition at line 54 of file gnuplot.cpp.
|
private |
Get the named GNUPlot instance.
[in] | name | Name of instance. |
Definition at line 165 of file gnuplot.cpp.
|
delete |
void GNUPlotHelper::timeseries | ( | const TimeSeriesOptions & | options | ) |
Plot timeseries data.
[in] | options | Plotting options. |
Definition at line 80 of file gnuplot.cpp.
|
private |