T can be std::string or int or anything else supports the << of streams. (It is used as name for a channel.)
|
Public Types |
| typedef std::list< T > | nameslist |
| typedef T | channel_name_type |
| | which data type is our template
|
Public Member Functions |
| | Gnuplot (int buffersize=256) |
| | ~Gnuplot () |
| void | command (const std::string &cmd) |
| | send arbitrary command to gnuplot.
|
| void | addChannel (const T &name, const std::string &title="", const std::string &style="lines") |
| | add new channel with name.
|
| void | putData (const T &channel, double data) |
| | add new data value to buffer for channel.
|
| const nameslist & | getNames () |
| | returns channel names
|
| std::string | getTitle (const T &channel) |
| | get title
|
| void | show (const T &channel, bool on=true) |
| | switch showing of this channel on or off
|
| void | hide (const T &channel) |
| | switch showing of this channel off
|
| void | show_all (bool on=true) |
| | switch showing all channels on or off
|
| void | hide_all () |
| | switch showing all channels off
|
| void | setTitle (const T &channel, const std::string &title) |
| | set title
|
| void | setStyle (const T &channel, const std::string &style) |
| | set style
|
| void | plot (int start, int end) |
| | make gnuplot plot selected content of data buffers
|
| void | plot () |
| | make gnuplot plot content of data buffers
|
| void | setStart (int n) |
| | set start of plot area
|
| void | setEnd (int n) |
| | set end of plot area
|
| int | getBuffersize () |
| | returns buffersize
|
| void | plotXY (const T *x, const T *y, int size) |
| | make gnuplot XY plot content of x against y data buffers use it as follow:
|
| void | plotXY (const T &x, const T &y) |
| | make gnuplot XY plot content of x against y data buffers
|
| void | printToFile (const std::string name="", const std::string ext=".log") |
| | save content of all data buffers in files ( file names are: name + channel_name + ext )
|
Protected Types |
| typedef std::map< T, Dataset * > | dataset_map |
| | data type of container storing channel->data relation
|
Protected Attributes |
| FILE * | pipe |
| dataset_map | datasets |
| nameslist | namesets |
| int | buffersize |
| int | start |
| int | end |
Classes |
| class | Dataset |
| | data buffer for one channel, organized as ring buffer More...
|