#include <gnuplot.h>
Inherited by PlotLog.
Inheritance diagram for Gnuplot:
Definition at line 37 of file gnuplot.h.
Public Types | |
typedef std::list< T > | nameslist |
typedef T | channel_name_type |
Public Member Functions | |
Gnuplot (int buffersize=256) | |
~Gnuplot () | |
void | command (const std::string &cmd) |
void | addChannel (const T &name, const std::string &title="", const std::string &style="lines") |
void | putData (const T &channel, double data) |
const nameslist & | getNames () |
std::string | getTitle (const T &channel) |
void | show (const T &channel, bool on=true) |
void | hide (const T &channel) |
void | show_all (bool on=true) |
void | hide_all () |
void | setTitle (const T &channel, const std::string &title) |
void | setStyle (const T &channel, const std::string &style) |
void | plot (int start, int end) |
void | plot () |
void | setStart (int n) |
void | setEnd (int n) |
int | getBuffersize () |
void | plotXY (const T *x, const T *y, int size) |
void | plotXY (const T &x, const T &y) |
void | printToFile (const std::string name="", const std::string ext=".log") |
Protected Types | |
typedef std::map< T, Dataset * > | dataset_map |
Protected Attributes | |
FILE * | pipe |
dataset_map | datasets |
nameslist | namesets |
int | buffersize |
int | start |
int | end |
|
which data type is our template Definition at line 65 of file gnuplot.h. |
|
data type of container storing channel->data relation Definition at line 110 of file gnuplot.h. |
|
|
|
|
add new channel with name. currently uses name as title if not given. Reimplemented in PlotLog. |
|
send arbitrary command to gnuplot. like "set zeroaxis" or other stuff Definition at line 129 of file gnuplot.h. |
|
returns buffersize Definition at line 246 of file gnuplot.h. |
|
returns channel names Definition at line 155 of file gnuplot.h. |
|
|
switch showing of this channel off Definition at line 175 of file gnuplot.h. |
|
switch showing all channels off Definition at line 186 of file gnuplot.h. |
|
make gnuplot plot content of data buffers Definition at line 232 of file gnuplot.h. |
|
make gnuplot plot selected content of data buffers Definition at line 205 of file gnuplot.h. |
|
make gnuplot XY plot content of x against y data buffers Definition at line 288 of file gnuplot.h. |
|
make gnuplot XY plot content of x against y data buffers use it as follow: T x[]={a,b,c}; T y[]={x,y,z}; plotXY(x,y,3);Definition at line 256 of file gnuplot.h. |
|
save content of all data buffers in files ( file names are: name + channel_name + ext ) Definition at line 294 of file gnuplot.h. |
|
add new data value to buffer for channel. if channel not exists nothing happens. So you can select channels in your program by commenting out the addChannel() call Reimplemented in PlotLog. |
|
set end of plot area
|
|
set start of plot area
|
|
|
|
switch showing of this channel on or off Definition at line 168 of file gnuplot.h. |
|
switch showing all channels on or off Definition at line 180 of file gnuplot.h. |
|
|
|
|
|
|